Skip to content

Commit

Permalink
connectd: don't gossip dying channels.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
rustyrussell committed Jul 19, 2023
1 parent 649ae79 commit 00b8bc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions connectd/gossip_store.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
1 change: 0 additions & 1 deletion tests/test_gossip.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 00b8bc9

Please sign in to comment.