Skip to content

Commit e0ff70f

Browse files
committed
f add comment in test
1 parent bc4d8d2 commit e0ff70f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3395,6 +3395,9 @@ mod tests {
33953395
check_closed_broadcast!(nodes[1], true);
33963396
check_closed_event!(nodes[1], 1, ClosureReason::ProcessingError { err: "ChannelMonitor storage failure".to_string() });
33973397

3398+
// Build a new ChannelMonitorUpdate which contains both the failing commitment tx update
3399+
// and provides the claim preimages for the two pending HTLCs. The first update generates
3400+
// an error, but the point of this test is to ensure the later updates are still applied.
33983401
let monitor_updates = nodes[1].chain_monitor.monitor_updates.lock().unwrap();
33993402
let mut replay_update = monitor_updates.get(&channel.2).unwrap().iter().rev().skip(1).next().unwrap().clone();
34003403
assert_eq!(replay_update.updates.len(), 1);

0 commit comments

Comments
 (0)