config+server: expose HistoricalSyncInterval flag

This allows us to set how often the daemon should routinely perform
historical graph syncs.
This commit is contained in:
Wilmer Paulino authored and Olaoluwa Osuntokun committed 2019-04-11 15:45:19 -07:00
1 parent 6963a92950
commit be727ab0be
2 files changed
+5 -1

No files matched your search

+1
View File
@@ -689,6 +689,7 @@ func newServer(listenAddrs []net.Addr, chanDB *channeldb.DB, cc *chainControl,
RotateTicker: ticker.New(discovery.DefaultSyncerRotationInterval),
HistoricalSyncTicker: ticker.New(discovery.DefaultHistoricalSyncInterval),
ActiveSyncerTimeoutTicker: ticker.New(discovery.DefaultActiveSyncerTimeout),
HistoricalSyncTicker: ticker.New(cfg.HistoricalSyncInterval),
NumActiveSyncers: cfg.NumGraphSyncPeers,
},
s.identityPriv.PubKey(),