discovery: set GossipSyncer update horizon to current time
With the introduction of the gossip sync manager in a later commit, retrieving the backlog of updates within the last hour is no longer necessary as we'll be forcing full syncs periodically.
This commit is contained in:
parent
8d7c0a9899
commit
acc42c1b68
@ -437,13 +437,7 @@ func (g *GossipSyncer) channelGraphSyncer() {
|
||||
// we want to receive real-time channel updates, we'll
|
||||
// do so now.
|
||||
if g.localUpdateHorizon == nil && syncType == ActiveSync {
|
||||
// TODO(roasbeef): query DB for most recent
|
||||
// update?
|
||||
|
||||
// We'll give an hours room in our update
|
||||
// horizon to ensure we don't miss any newer
|
||||
// items.
|
||||
updateHorizon := time.Now().Add(-time.Hour * 1)
|
||||
updateHorizon := time.Now()
|
||||
log.Infof("GossipSyncer(%x): applying "+
|
||||
"gossipFilter(start=%v)",
|
||||
g.cfg.peerPub[:], updateHorizon)
|
||||
|
Loading…
Reference in New Issue
Block a user