]> git.bitcoin.ninja Git - rust-lightning/commit
Track full-path htlc-minimum-msat while routing
authorMatt Corallo <git@bluematt.me>
Thu, 25 Feb 2021 21:56:40 +0000 (16:56 -0500)
committerMatt Corallo <git@bluematt.me>
Thu, 25 Feb 2021 23:20:01 +0000 (18:20 -0500)
commitbb4364192aeb47a12186ea89a8600cefa73c2311
tree0f14f59560d1ce9af1290e2f57bc5e89160f93b5
parent86196bda8bd158b5ebc889741a3df8d09e98ceb9
Track full-path htlc-minimum-msat while routing

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