]> git.bitcoin.ninja Git - rust-lightning/commit
Impl decaying in `ProbabilisticScorer::decay_liquidity_certainty`
authorMatt Corallo <git@bluematt.me>
Mon, 2 Oct 2023 20:07:21 +0000 (20:07 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 13 Dec 2023 23:26:09 +0000 (23:26 +0000)
commit9659c0695557b5ae1e60da509cf7b2273a8ac987
tree18bf57b14ff632131776cf676b19fa5e0e0b80e8
parentf0f8194719158759b9d745df7f136312fb09ff13
Impl decaying in `ProbabilisticScorer::decay_liquidity_certainty`

This implements decaying in the `ProbabilisticScorer`'s
`ScoreLookup::decay_liquidity_certainty` implementation, using
floats for accuracy since we're no longer particularly
time-sensitive. Further, it (finally) removes score entries which
have decayed to zero.
lightning/src/routing/scoring.rs