]> git.bitcoin.ninja Git - rust-lightning/commit
Distinguish maximum HTLC from effective capacity
authorJeffrey Czyz <jkczyz@gmail.com>
Sun, 23 Jan 2022 23:25:38 +0000 (17:25 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Thu, 19 May 2022 19:25:22 +0000 (14:25 -0500)
commit22ce7d89d7816f64ef1f6cc613a386a96a0fea5e
tree0f09e7e835869901f5112b143e4b11f9be6731e3
parent0a318f4cf88938a8064694618c586ab60d242ca6
Distinguish maximum HTLC from effective capacity

Using EffectiveCapacity in scoring gives more accurate success
probabilities when the maximum HTLC value is less than the channel
capacity. Change EffectiveCapacity to prefer the channel's capacity
over its maximum HTLC limit, but still use the latter for route finding.
lightning/src/routing/network_graph.rs
lightning/src/routing/router.rs