Skip to content

Commit 167caa3

Browse files
committed
fixup: test: Modify test_peer_storage to check latest changes
1 parent 33d0ee4 commit 167caa3

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
@@ -17529,7 +17529,7 @@ mod tests {
1752917529
nodes[1].node.peer_disconnected(nodes[0].node.get_our_node_id());
1753017530

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

1753517535
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
@@ -1850,11 +1850,6 @@ impl TestChainSource {
18501850
self.watched_outputs.lock().unwrap().remove(&(outpoint, script_pubkey.clone()));
18511851
self.watched_txn.lock().unwrap().remove(&(outpoint.txid, script_pubkey));
18521852
}
1853-
1854-
pub fn clear_watched_txn_and_outputs(&self) {
1855-
self.watched_outputs.lock().unwrap().clear();
1856-
self.watched_txn.lock().unwrap().clear();
1857-
}
18581853
}
18591854

18601855
impl UtxoLookup for TestChainSource {

0 commit comments

Comments
 (0)