]> git.bitcoin.ninja Git - rust-lightning/commit
Provide `Score` the HTLC amount and channel capacity
authorMatt Corallo <git@bluematt.me>
Fri, 12 Nov 2021 03:52:58 +0000 (03:52 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 16 Nov 2021 20:58:04 +0000 (20:58 +0000)
commit8dc7cfab3af7e26cddd8c65a913d5ee021907442
tree3e72e444f92b21cf8687f17127fd6c502f4e64d3
parente1ad422c1b9bb114f20411777faaee750c670ec5
Provide `Score` the HTLC amount and channel capacity

This should allow `Score` implementations to make substantially
better decisions, including of the form "willing to pay X to avoid
routing over this channel which may have a high failure rate".
lightning-invoice/src/payment.rs
lightning/src/routing/mod.rs
lightning/src/routing/router.rs
lightning/src/routing/scorer.rs