gossipd: flag zombie channels when loading from gossip_store

Without inheriting zombie status, gossipd would allow regular channel updates
into the store until the pruning cycle hits (and the channel is properly
flagged) which is 3.5 days. Applying zombie status when reading channel
updates from the store prevents this.

Changelog-None
This commit is contained in:
Alex Myers
2023-02-28 13:04:00 -06:00
committed by Alex Myers
parent 07c04d247e
commit d5246e43bb
3 changed files with 26 additions and 15 deletions

View File

@@ -370,7 +370,8 @@ bool routing_add_channel_update(struct routing_state *rstate,
u32 index,
struct peer *peer,
bool ignore_timestamp,
bool force_spam_flag);
bool force_spam_flag,
bool force_zombie_flag);
/**
* Add a node_announcement to the network view without checking it
*