Skip to content

Commit ff93668

Browse files
committed
Add additional test coverage of NetworkGraph counters
This would have caught the bug fixed in 0c0cb6f in our tests. Suggested by @valentinewallace.
1 parent 299b7bd commit ff93668

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lightning/src/routing/gossip.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2089,6 +2089,10 @@ where
20892089
};
20902090
}
20912091

2092+
core::mem::drop(nodes);
2093+
core::mem::drop(channels);
2094+
self.test_node_counter_consistency();
2095+
20922096
Ok(())
20932097
}
20942098

0 commit comments

Comments
 (0)