mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
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.
This commit is contained in:
committed by
Rusty Russell
parent
bcb287f89b
commit
77236caa91
@@ -204,7 +204,7 @@ struct broadcast_state *broadcast_state_check(struct broadcast_state *b,
|
|||||||
×tamp,
|
×tamp,
|
||||||
&node_id_1, color, alias,
|
&node_id_1, color, alias,
|
||||||
&addresses))
|
&addresses))
|
||||||
if (!uintmap_get(&channels, scid.u64))
|
if (!pubkey_set_get(&pubkeys, &node_id_1))
|
||||||
return corrupt(abortstr,
|
return corrupt(abortstr,
|
||||||
"node announced before channel",
|
"node announced before channel",
|
||||||
NULL, &node_id_1);
|
NULL, &node_id_1);
|
||||||
|
|||||||
Reference in New Issue
Block a user