]> git.bitcoin.ninja Git - rust-lightning/commit
Special-case the 0th minimum bucket in historical scoring
authorMatt Corallo <git@bluematt.me>
Sat, 19 Aug 2023 18:43:45 +0000 (18:43 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 15 Sep 2023 17:20:38 +0000 (17:20 +0000)
commitb7d1e5f516ff340f8ba512df3e62d502b18e92fd
tree3ad75eb896b8fe0610fc7db70167c5723c9770b1
parent2ed21b87faee83946bfd77d3c01c5c1e6fd7d7e9
Special-case the 0th minimum bucket in historical scoring

Points in the 0th minimum bucket either indicate we sent a payment
which is < 1/16,384th of the channel's capacity or, more likely,
we failed to send a payment. In either case, averaging the success
probability across the full range of upper-bounds doesn't make a
whole lot of sense - if we've never managed to send a "real"
payment over a channel, we should be considering it quite poor.

To address this, we special-case the 0th minimum bucket and only
look at the largest-offset max bucket when calculating the success
probability.
lightning/src/routing/scoring.rs