gossipd: make sure we correctly move node announcement when *no* channel preceeds it in the gossip store.

We had the test backwards, so we moved it *all the time*.  This bloats our gossip store, as well as
not moving it in the case where we need to.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Fixed: gossipd: we would occasionally not show a node announcement in listnodes().
This commit is contained in:
Rusty Russell
2025-12-08 16:11:46 +10:30
committed by madelinevibes
parent d1857fff91
commit f0e9547661
2 changed files with 1 additions and 2 deletions

View File

@@ -2372,7 +2372,6 @@ def test_incoming_unreasonable(node_factory):
l3.rpc.listincoming()
@pytest.mark.xfail(strict=True)
def test_gossmap_lost_node(node_factory, bitcoind):
l1, l2, l3, l4 = node_factory.line_graph(4, wait_for_announce=True)