]> git.bitcoin.ninja Git - rust-lightning/commit
Allow overshooting `total_msat` for an MPP
authorAlec Chen <alecchendev@gmail.com>
Wed, 1 Mar 2023 00:42:39 +0000 (18:42 -0600)
committerAlec Chen <alecchendev@gmail.com>
Tue, 28 Mar 2023 22:21:09 +0000 (17:21 -0500)
commitf3d8e583744653d701495e21124216a0dc4a6ef6
treea5b3d12fe136aab176e07cc919bf833b4259a77d
parentb9f4ebdd28ccfedc1dd27dab69c9887eee38320d
Allow overshooting `total_msat` for an MPP

While retrying a failed path of an MPP, a node may want to overshoot
the `total_msat` in order to use a path with an `htlc_minimum_msat`
greater than the remaining value being sent. This commit no longer
fails MPPs that overshoot the `total_msat`, however it does fail
HTLCs with the same payment hash that are received *after* a
payment has become claimable.
lightning/src/events/mod.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_tests.rs
lightning/src/ln/outbound_payment.rs