]> git.bitcoin.ninja Git - rust-lightning/commit
Score in-flight amounts as amounts, not a capacity reduction
authorMatt Corallo <git@bluematt.me>
Sat, 16 Sep 2023 18:39:03 +0000 (18:39 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 20 Sep 2023 18:32:21 +0000 (18:32 +0000)
commitdf52da7b31494c7ec77a705cca4c44bc840f8a95
tree9f2cb7da6f111bc9b1f7be715368525c60fd2105
parent5f98c399274839f5523018aad0a7e5ee31ec9d02
Score in-flight amounts as amounts, not a capacity reduction

When we started considering the in-flight amounts when scoring, we
took the approach of considering the in-flight amount as an
effective reduction in the channel's total capacity. When we were
scoring using a flat success probability PDF, that was fine,
however in the next commit we'll move to a highly nonlinear one,
which makes this a pretty confusing heuristic.

Here, instead, we move to considering the in-flight amount as
simply an extension of the amount we're trying to send over the
channel, which is equivalent for the flat success probability PDF,
but makes much more sense in a nonlinear world.
lightning/src/routing/scoring.rs