Skip to content

Commit 6ec0b06

Browse files
committed
f connect a block before testing no events get passed
1 parent f553daa commit 6ec0b06

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lightning/src/chain/chainmonitor.rs

+2
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,8 @@ mod tests {
817817
nodes[0].chain_monitor.chain_monitor.transactions_confirmed(&new_header,
818818
&[(0, &remote_txn[0]), (1, &remote_txn[1])], nodes[0].best_block_info().1 + 1);
819819
assert!(nodes[0].chain_monitor.release_pending_monitor_events().is_empty());
820+
nodes[0].chain_monitor.chain_monitor.best_block_updated(&new_header, nodes[0].best_block_info().1 + 1);
821+
assert!(nodes[0].chain_monitor.release_pending_monitor_events().is_empty());
820822

821823
// If the ChannelManager tries to update the channel, however, the ChainMonitor will pass
822824
// the update through to the ChannelMonitor which will refuse it (as the channel is closed).

0 commit comments

Comments
 (0)