connectd: don't gossip dying channels.

Fixes: #6368
Changelog-Fixed: Protocol: we no longer gossip about recently-closed channels (Eclair gets upset with this).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2023-07-19 16:07:49 +09:30
parent 26bb791298
commit 656517f643
2 changed files with 2 additions and 3 deletions

View File

@ -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;
}

View File

@ -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)