From 089f33d1dca449e0efe8209d20c15bed6280c28f Mon Sep 17 00:00:00 2001 From: Jacky Wang Date: Tue, 8 Dec 2020 17:14:16 -0800 Subject: [PATCH] [sync][explorer] add some comments in sync --- api/service/syncing/syncing.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/service/syncing/syncing.go b/api/service/syncing/syncing.go index 07262a04d..9dd647dbc 100644 --- a/api/service/syncing/syncing.go +++ b/api/service/syncing/syncing.go @@ -1025,6 +1025,8 @@ func (ss *StateSync) SyncLoop(bc *core.BlockChain, worker *worker.Worker, isBeac if err := ss.addConsensusLastMile(bc, consensus); err != nil { utils.Logger().Error().Err(err).Msg("[SYNC] Add consensus last mile") } + // This logic is only needed for explorer node. + // TODO: refactor this. consensus.UpdateConsensusInformation() } ss.purgeAllBlocksFromCache()