]> git.bitcoin.ninja Git - rust-lightning/commit
Notify scorer of failing payment path and channel
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 22 Oct 2021 18:02:26 +0000 (13:02 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Wed, 27 Oct 2021 19:03:51 +0000 (14:03 -0500)
commit0cc67fbb2f5eaf92bab61c8e562a115d341ebed8
treee665db7a50186ff5b9e4a8dc59fcc51dadd84e84
parent5f12682d72ddc1d8774b14bf44172ea39e52849d
Notify scorer of failing payment path and channel

Upon receiving a PaymentPathFailed event, the failing payment may be
retried on a different path. To avoid using the channel responsible for
the failure, a scorer should be notified of the failure before being
used to find a new route.

Add a payment_path_failed method to routing::Score and call it in
InvoicePayer's event handler.
lightning-invoice/src/payment.rs
lightning/src/routing/mod.rs
lightning/src/routing/router.rs
lightning/src/routing/scorer.rs