]> git.bitcoin.ninja Git - rust-lightning/commit
Penalize failed channels in Scorer
authorJeffrey Czyz <jkczyz@gmail.com>
Wed, 27 Oct 2021 15:39:22 +0000 (10:39 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 29 Oct 2021 19:26:58 +0000 (14:26 -0500)
commitc34ab42961b9c602adf4235742e4b5b54f3de717
tree356a559c21fb86ef42e9d9d804b4a7a2d221e1bf
parent7a8954e1ca318eecb4a03aa5f729d9d0ee9a904e
Penalize failed channels in Scorer

As payments fail, the channel responsible for the failure may be
penalized. Implement Scorer::payment_path_failed to penalize the failed
channel using a configured penalty. As time passes, the penalty is
reduced using exponential decay, though penalties will accumulate if the
channel continues to fail. The decay interval is also configurable.
fuzz/src/full_stack.rs
fuzz/src/router.rs
lightning-invoice/src/utils.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs
lightning/src/ln/shutdown_tests.rs
lightning/src/routing/router.rs
lightning/src/routing/scorer.rs