|
|
@ -1025,6 +1025,11 @@ func (ss *StateSync) SyncLoop(bc *core.BlockChain, worker *worker.Worker, isBeac |
|
|
|
if err := ss.addConsensusLastMile(bc, consensus); err != nil { |
|
|
|
if err := ss.addConsensusLastMile(bc, consensus); err != nil { |
|
|
|
utils.Logger().Error().Err(err).Msg("[SYNC] Add consensus last mile") |
|
|
|
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() |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
ss.purgeAllBlocksFromCache() |
|
|
|
ss.purgeAllBlocksFromCache() |
|
|
|
} |
|
|
|
} |
|
|
|