From: Matt Corallo Date: Tue, 29 Oct 2024 18:08:47 +0000 (+0000) Subject: Add additional test coverage of `NetworkGraph` counters X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=refs%2Fheads%2F2024-10-counter-test;p=rust-lightning Add additional test coverage of `NetworkGraph` counters This would have caught the bug fixed in 0c0cb6fccbb426924f21915053b in our tests. Suggested by @valentinewallace. --- diff --git a/lightning/src/routing/gossip.rs b/lightning/src/routing/gossip.rs index c2e7e70ef..c552005d9 100644 --- a/lightning/src/routing/gossip.rs +++ b/lightning/src/routing/gossip.rs @@ -2089,6 +2089,10 @@ where }; } + core::mem::drop(nodes); + core::mem::drop(channels); + self.test_node_counter_consistency(); + Ok(()) }