Skip to content

Commit bddcd65

Browse files
committed
f - keep MPP completion timeout check updated on this commit as well
1 parent 1f0f938 commit bddcd65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3662,7 +3662,7 @@ where
36623662
if let OnionPayload::Invoice { .. } = htlcs[0].onion_payload {
36633663
// Check if we've received all the parts we need for an MPP (the value of the parts adds to total_msat).
36643664
// 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) {
3665+
if htlcs[0].total_msat <= htlcs.iter().fold(0, |total, htlc| total + htlc.value) {
36663666
return true;
36673667
} else if htlcs.into_iter().any(|htlc| {
36683668
htlc.timer_ticks += 1;

0 commit comments

Comments
 (0)