[sync][explorer] add some comments in sync

pull/3476/head
Jacky Wang 4 years ago committed by Leo Chen
parent d9734e77db
commit 089f33d1dc
  1. 2
      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()

Loading…
Cancel
Save