discovery: add new option to toggle gossip rate limiting

In this commit, we add a new option to toggle gossip rate limiting. This
new option can be useful in contexts that require near instant
propagation of gossip messages like integration tests.
This commit is contained in:
Olaoluwa Osuntokun committed 2020-11-30 16:38:56 -08:00
1 parent b1fbbcf562
commit 13a2598ded
3 files changed
+10 -2

No files matched your search

+1
View File
@@ -804,6 +804,7 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
MinimumBatchSize: 10,
SubBatchDelay: time.Second * 5,
IgnoreHistoricalFilters: cfg.IgnoreHistoricalGossipFilters,
GossipUpdateThrottle: !cfg.ProtocolOptions.NoGossipThrottle(),
},
s.identityECDH.PubKey(),
)