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:
Wilmer Paulino 2019-03-22 19:55:16 -07:00
parent 8d7c0a9899
commit acc42c1b68
No known key found for this signature in database
GPG Key ID: 6DF57B9F9514972F

@ -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)