mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 22:45:27 +01:00
gossipd: remove any zombified node_announcements on load.
This can happen if you were running an rc. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
2e7c08824a
commit
baeebf2863
1 changed files with 7 additions and 0 deletions
|
@ -879,6 +879,13 @@ u32 gossip_store_load(struct routing_state *rstate, struct gossip_store *gs)
|
|||
stats[1]++;
|
||||
break;
|
||||
case WIRE_NODE_ANNOUNCEMENT:
|
||||
/* In early v23.02 rcs we had zombie node announcements,
|
||||
* so throw them away here. */
|
||||
if (be16_to_cpu(hdr.flags) & GOSSIP_STORE_ZOMBIE_BIT) {
|
||||
status_unusual("gossip_store: removing zombie"
|
||||
" node_announcement from v23.02 rcs");
|
||||
break;
|
||||
}
|
||||
if (!routing_add_node_announcement(rstate,
|
||||
take(msg), gs->len,
|
||||
NULL, NULL, spam)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue