Clarify ChannelManager docs somewhat around full blocks
[rust-lightning] / lightning / src / ln / reorg_tests.rs
index 675602c31888d1f528a9bd3dfb9e5694b26192b3..165f86fc2665627e6bd5c909fdd5d7a6f4c1ce2d 100644 (file)
@@ -280,6 +280,8 @@ fn do_test_unconf_chan(reload_node: bool, reorg_after_reload: bool) {
                }
        }
 
+       // With expect_channel_force_closed set the TestChainMonitor will enforce that the next update
+       // is a ChannelForcClosed on the right channel with should_broadcast set.
        *nodes[0].chain_monitor.expect_channel_force_closed.lock().unwrap() = Some((chan_id, true));
        nodes[0].node.test_process_background_events(); // Required to free the pending background monitor update
        check_added_monitors!(nodes[0], 1);