Merge pull request #2985 from johng/sub-batch

Broadcast gossip announcements in sub batches
This commit is contained in:
Conner Fromknecht
2019-05-28 17:05:06 -07:00
committed by GitHub
3 changed files with 196 additions and 28 deletions

View File

@@ -694,6 +694,8 @@ func newServer(listenAddrs []net.Addr, chanDB *channeldb.DB, cc *chainControl,
RotateTicker: ticker.New(discovery.DefaultSyncerRotationInterval),
HistoricalSyncTicker: ticker.New(cfg.HistoricalSyncInterval),
NumActiveSyncers: cfg.NumGraphSyncPeers,
MinimumBatchSize: 10,
SubBatchDelay: time.Second * 5,
},
s.identityPriv.PubKey(),
)