]> git.bitcoin.ninja Git - rust-lightning/commit
Decay channel failure penalty upon success
authorJeffrey Czyz <jkczyz@gmail.com>
Wed, 1 Dec 2021 00:27:08 +0000 (18:27 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 3 Dec 2021 20:00:52 +0000 (14:00 -0600)
commitd28d6a5403682d2d1539bf73552a4490a2309578
tree02bac8c4cb8568f41862f286be7aaf19c831f20e
parentc36bf9249978dce2b72b3b67d01e22c6c8d78431
Decay channel failure penalty upon success

If a payment failed to route through a channel, a penalty is applied to
the channel in the future when finding a route. This penalty decays over
time. Immediately decay the penalty by one half life when a payment is
successfully routed through the channel.
lightning/src/routing/scoring.rs