Skip to content

Commit 6328b33

Browse files
committed
fixup: test: Modify test_peer_storage to check latest changes
1 parent e1f702f commit 6328b33

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17218,7 +17218,7 @@ mod tests {
1721817218
nodes[1].node.peer_disconnected(nodes[0].node.get_our_node_id());
1721917219

1722017220
// Reload Node!
17221-
// nodes[0].chain_source.clear_watched_txn_and_outputs();
17221+
// TODO: Handle the case where we've completely forgotten about an active channel.
1722217222
reload_node!(nodes[0], test_default_channel_config(), &nodes_0_serialized, &[&old_state_monitor[..]], persister, chain_monitor, nodes_0_deserialized);
1722317223

1722417224
nodes[0].node.peer_connected(nodes[1].node.get_our_node_id(), &msgs::Init {

lightning/src/util/test_utils.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1822,11 +1822,6 @@ impl TestChainSource {
18221822
self.watched_outputs.lock().unwrap().remove(&(outpoint, script_pubkey.clone()));
18231823
self.watched_txn.lock().unwrap().remove(&(outpoint.txid, script_pubkey));
18241824
}
1825-
1826-
pub fn clear_watched_txn_and_outputs(&self) {
1827-
self.watched_outputs.lock().unwrap().clear();
1828-
self.watched_txn.lock().unwrap().clear();
1829-
}
18301825
}
18311826

18321827
impl UtxoLookup for TestChainSource {

0 commit comments

Comments
 (0)