Skip to content

Commit f41a0b9

Browse files
committed
f: Stop trimming HTLCs from claim once batch_size is 0
1 parent 9258ef6 commit f41a0b9

File tree

1 file changed

+3
-0
lines changed
  • lightning/src/events/bump_transaction

1 file changed

+3
-0
lines changed

lightning/src/events/bump_transaction/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,6 +1041,9 @@ where
10411041
channel_type,
10421042
) + 1;
10431043
batch_size = batch_size.checked_sub(htlcs_to_remove as usize).ok_or(())?;
1044+
if batch_size == 0 {
1045+
return Err(());
1046+
}
10441047
continue;
10451048
},
10461049
};

0 commit comments

Comments
 (0)