We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f0f938 commit bddcd65Copy full SHA for bddcd65
lightning/src/ln/channelmanager.rs
@@ -3662,7 +3662,7 @@ where
3662
if let OnionPayload::Invoice { .. } = htlcs[0].onion_payload {
3663
// Check if we've received all the parts we need for an MPP (the value of the parts adds to total_msat).
3664
// In this case we're not going to handle any timeouts of the parts here.
3665
- if htlcs[0].total_msat == htlcs.iter().fold(0, |total, htlc| total + htlc.value) {
+ if htlcs[0].total_msat <= htlcs.iter().fold(0, |total, htlc| total + htlc.value) {
3666
return true;
3667
} else if htlcs.into_iter().any(|htlc| {
3668
htlc.timer_ticks += 1;
0 commit comments