From acc42c1b6875de0464b20f402dd123bef8b67f41 Mon Sep 17 00:00:00 2001 From: Wilmer Paulino Date: Fri, 22 Mar 2019 19:55:16 -0700 Subject: [PATCH] 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. --- discovery/syncer.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/discovery/syncer.go b/discovery/syncer.go index 295be2ac..6a5c3cb1 100644 --- a/discovery/syncer.go +++ b/discovery/syncer.go @@ -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)