Browse Source

gossipd: fix the check for node announcement in broadcast_state_check()

There should check if node_id_1 was stored in pubkeys, other than checking scid.
pr-2587
trueptolemy 6 years ago
committed by Rusty Russell
parent
commit
77236caa91
  1. 2
      gossipd/broadcast.c

2
gossipd/broadcast.c

@ -204,7 +204,7 @@ struct broadcast_state *broadcast_state_check(struct broadcast_state *b,
&timestamp,
&node_id_1, color, alias,
&addresses))
if (!uintmap_get(&channels, scid.u64))
if (!pubkey_set_get(&pubkeys, &node_id_1))
return corrupt(abortstr,
"node announced before channel",
NULL, &node_id_1);

Loading…
Cancel
Save