]> git.bitcoin.ninja Git - rust-lightning/commit
[routing] Track full-path htlc-minimum-msat while graph-walking
authorMatt Corallo <git@bluematt.me>
Sat, 27 Mar 2021 02:55:54 +0000 (22:55 -0400)
committerMatt Corallo <git@bluematt.me>
Sat, 27 Mar 2021 02:55:54 +0000 (22:55 -0400)
commitbdd2494ad3896d7d128d7158bf045bd6e1e4efff
tree484f391c35c38eb0a77cd5326418bd3b990272d3
parent80075b8ea06ea6ac5eb9598c32539e6c980faea4
[routing] 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