mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
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:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user