mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-19 13:04:37 +01:00
[dev-suppress-gossip] - Set new peers to GOSSIP_NONE with flag enabled
Signed-off-by: willcl-ark <will8clark@gmail.com>
This commit is contained in:
committed by
Rusty Russell
parent
3418e59d76
commit
8d4203e9a6
@@ -561,6 +561,12 @@ static enum gossip_level peer_gossip_level(const struct daemon *daemon,
|
||||
if (!gossip_queries_feature)
|
||||
return GOSSIP_HIGH;
|
||||
|
||||
#if DEVELOPER
|
||||
/* Don't ask new peers for new gossip is dev-suppress-gossip has been set*/
|
||||
if (suppress_gossip)
|
||||
return GOSSIP_NONE;
|
||||
#endif
|
||||
|
||||
/* Figure out how many we have at each level. */
|
||||
memset(gossip_levels, 0, sizeof(gossip_levels));
|
||||
list_for_each(&daemon->peers, peer, list)
|
||||
|
||||
Reference in New Issue
Block a user