Score successful payment paths
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 30 Nov 2021 23:16:05 +0000 (17:16 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 3 Dec 2021 20:00:51 +0000 (14:00 -0600)
commitc36bf9249978dce2b72b3b67d01e22c6c8d78431
tree9c5185d7375ff6925d9ee967b0bb8d019a7a7cea
parent0cdea66b0e73d45b2a137eed145a294b7d713cc4
Score successful payment paths

Expand the Score trait with a payment_path_successful function for
scoring successful payment paths. Called by InvoicePayer's EventHandler
implementation when processing PaymentPathSuccessful events. May be used
by Score implementations to revert any channel penalties that were
applied by calls to payment_path_failed.
lightning-invoice/src/payment.rs
lightning/src/routing/router.rs
lightning/src/routing/scoring.rs