]> git.bitcoin.ninja Git - rust-lightning/commit
Score without uncertainty for exact liquidity
authorJeffrey Czyz <jkczyz@gmail.com>
Wed, 27 Apr 2022 20:55:33 +0000 (15:55 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Thu, 19 May 2022 19:25:23 +0000 (14:25 -0500)
commit4715d90a0624459d59705e4ee2ff776391169af5
tree80d6ac988d2c1888f9f28ce35441847c000b6cb4
parent197cbc4d28a3c7e2b009211832d1d59ddac5ec70
Score without uncertainty for exact liquidity

For direct channels, the channel liquidity is known with certainty. Use
this knowledge in ProbabilisticScorer by either penalizing with the
per-hop penalty or u64::max_value depending on the amount.
lightning/src/routing/scoring.rs