From ff93668ea227747cb10e8ff3892dd3036605d0a9 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 29 Oct 2024 18:08:47 +0000 Subject: [PATCH] Add additional test coverage of `NetworkGraph` counters This would have caught the bug fixed in 0c0cb6fccbb426924f21915053b in our tests. Suggested by @valentinewallace. --- lightning/src/routing/gossip.rs | 4 ++++ 1 file changed, 4 insertions(+) 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(()) } -- 2.39.5