]> git.bitcoin.ninja Git - rust-lightning/commit
[router] Track full-path htlc-minimum-msat while graph-walking
authorMatt Corallo <git@bluematt.me>
Sat, 27 Mar 2021 02:53:35 +0000 (22:53 -0400)
committerMatt Corallo <git@bluematt.me>
Wed, 7 Apr 2021 01:41:45 +0000 (21:41 -0400)
commit93311b3684c2ad90e80f888641c775b16c0c25a3
tree58c86fb14c267e6c22fccb264a7f436f4b95c5f4
parent5c38e09b2616ee78ccaa257dc4502f2f373c4a9e
[router] Track full-path htlc-minimum-msat while graph-walking

Previously, we'd happily send funds through a path where, while
generating the path, in some middle hope we reduce the value being
sent to meet an htlc_maximum, making a later hop invalid due to it
no longer meeting its htlc_minimum. Instead, we need to track the
path's htlc-minimum while we're transiting the graph.
lightning/src/routing/router.rs