From 4fc3c26671332b0f007f6c978bac75b63388cd53 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 15 Feb 2023 15:03:35 +1030 Subject: [PATCH] gossipd: don't complain about unknown node_announcements if it's a zombie. They might not consider it a zombie, and in fact this happens with the next changes. Signed-off-by: Rusty Russell --- gossipd/routing.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gossipd/routing.c b/gossipd/routing.c index b1608fa46..0dfee78b6 100644 --- a/gossipd/routing.c +++ b/gossipd/routing.c @@ -1816,9 +1816,12 @@ bool routing_add_node_announcement(struct routing_state *rstate, if (!pna) { if (was_unknown) *was_unknown = true; - bad_gossip_order(msg, peer, - type_to_string(tmpctx, struct node_id, - &node_id)); + /* Don't complain if it's a zombie node! */ + if (!node || !is_node_zombie(node)) { + bad_gossip_order(msg, peer, + type_to_string(tmpctx, struct node_id, + &node_id)); + } return false; } else if (timestamp <= pna->timestamp) /* Ignore old ones: they're OK (unless from store). */