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:
parent
baeebf2863
commit
69cd043189
|
@ -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:
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue