From 69cd04318906cb683d7aebfe98f11ded8bc3d7cf Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 15 Feb 2023 15:03:58 +1030 Subject: [PATCH] gossipd: remove redundant is_node_zombie() in routing_add_node_announcement. A zombie channel is not considered broadcastable, so if all channels are zombies (i.e. is_node_zombie() is true), then node_has_broadcastable_channels() is false. Signed-off-by: Rusty Russell --- gossipd/routing.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gossipd/routing.c b/gossipd/routing.c index 62f2d26fc..8df6cf006 100644 --- a/gossipd/routing.c +++ b/gossipd/routing.c @@ -1774,9 +1774,7 @@ bool routing_add_node_announcement(struct routing_state *rstate, node = get_node(rstate, &node_id); - if (node == NULL - || !node_has_broadcastable_channels(node) - || is_node_zombie(node)) { + if (node == NULL || !node_has_broadcastable_channels(node)) { struct pending_node_announce *pna; /* BOLT #7: *