From d9734e77db9d53bcfa429c55a3877493a6671f6c Mon Sep 17 00:00:00 2001 From: Jacky Wang Date: Tue, 8 Dec 2020 17:03:10 -0800 Subject: [PATCH] [sync] fix sync --- api/service/syncing/syncing.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/api/service/syncing/syncing.go b/api/service/syncing/syncing.go index d04c7d8e5..07262a04d 100644 --- a/api/service/syncing/syncing.go +++ b/api/service/syncing/syncing.go @@ -1025,11 +1025,7 @@ 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") } - if bc.CurrentBlock().IsLastBlockInEpoch() { - // Temporary fix for explorer node. This logic is only needed for explorer node. - // TODO: refactor this. - consensus.UpdateConsensusInformation() - } + consensus.UpdateConsensusInformation() } ss.purgeAllBlocksFromCache() }