diff --git a/connectd/gossip_store.c b/connectd/gossip_store.c index e387f55d9..78af959c7 100644 --- a/connectd/gossip_store.c +++ b/connectd/gossip_store.c @@ -130,8 +130,8 @@ u8 *gossip_store_next(const tal_t *ctx, flags = be16_to_cpu(hdr.flags); ratelimited = (flags & GOSSIP_STORE_RATELIMIT_BIT); - /* Skip any deleted entries. */ - if (flags & GOSSIP_STORE_DELETED_BIT) { + /* Skip any deleted/dying entries. */ + if (flags & (GOSSIP_STORE_DELETED_BIT|GOSSIP_STORE_DYING_BIT)) { *off += r + msglen; continue; } diff --git a/tests/test_gossip.py b/tests/test_gossip.py index 5780c3583..7af97a090 100644 --- a/tests/test_gossip.py +++ b/tests/test_gossip.py @@ -2226,7 +2226,6 @@ def test_gossip_private_updates(node_factory, bitcoind): wait_for(lambda: l1.daemon.is_in_log(r'gossip_store_compact_offline: 5 deleted, 3 copied')) -@pytest.mark.xfail(strict=True) def test_gossip_not_dying(node_factory, bitcoind): l1 = node_factory.get_node() l2, l3 = node_factory.line_graph(2, wait_for_announce=True)