]> git.bitcoin.ninja Git - rust-lightning/commit
Explicitly reject routes that double-back
authorshaavan <shaavan.github@gmail.com>
Tue, 21 Nov 2023 14:41:46 +0000 (20:11 +0530)
committershaavan <shaavan.github@gmail.com>
Wed, 22 Nov 2023 13:04:44 +0000 (18:34 +0530)
commit9bd1cc76609e14c286477522cf2b56f17bd4346d
treec6c058f499e834a244b2a7e96e646c5cf5014588
parent870a0f14bab32d21c7652773b5d9a37f8e59cd5e
Explicitly reject routes that double-back

- If a path within a route passes through the same channelID twice,
  that shows the path is looped and will be rejected by nodes.
- Add a check to explicitly reject such payment before trying to send
  them.
lightning/src/ln/outbound_payment.rs