Merge pull request #4810 from Roasbeef/gossip-throttle-config

multi: add new config option to toggle gossip rate limiting
This commit is contained in:
Johan T. Halseth authored and GitHub committed 2020-12-01 13:32:52 +01:00
commit 8ec4697fe3
6 files changed
+27 -2

No files matched your search

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