Skip to content

Commit 276688a

Browse files
committed
ignore EventGenerated in test chain mon
1 parent d9a5790 commit 276688a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lightning/src/util/test_utils.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,13 @@ impl<'a> chain::Watch<TestChannelSigner> for TestChainMonitor<'a> {
663663
} else {
664664
assert!(new_monitor == *monitor);
665665
}
666+
667+
if update.updates.len() == 1 {
668+
if let ChannelMonitorUpdateStep::EventGenerated { .. } = update.updates[0] {
669+
return update_res;
670+
}
671+
}
672+
666673
self.added_monitors.lock().unwrap().push((channel_id, new_monitor));
667674
update_res
668675
}

0 commit comments

Comments
 (0)