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 <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2023-02-15 15:03:58 +10:30 committed by Alex Myers
parent baeebf2863
commit 69cd043189
1 changed files with 1 additions and 3 deletions

View File

@ -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:
*