Add an amount penalty to ProbabilisticScorer
authorJeffrey Czyz <jkczyz@gmail.com>
Thu, 31 Mar 2022 13:13:10 +0000 (08:13 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 1 Apr 2022 20:52:10 +0000 (15:52 -0500)
commit5425b2b77e690a08a604c6d26fbd0f8a1667f045
tree54dd1e230139198b7bb90dfc6375d8b4df236e6a
parent5337f89d8bbb8dd3ade0e7bdcfca899c7b3941a9
Add an amount penalty to ProbabilisticScorer

The cost of large payments tends to be dominated by the channel fees. To
avoid this, add an amount penalty to ProbabilisticScorer with a user
configurable multiplier. The multiplier is applied for every 2^20th of
the amount weighted by the negative log10 of the channel's success
probability for the payment.
lightning/src/routing/scoring.rs