|
|
|
@ -821,7 +821,7 @@ func (ss *StateSync) getBlockFromLastMileBlocksByParentHash(parentHash common.Ha |
|
|
|
|
// UpdateBlockAndStatus ...
|
|
|
|
|
func (ss *StateSync) UpdateBlockAndStatus(block *types.Block, bc *core.BlockChain, verifyAllSig bool) error { |
|
|
|
|
if block.NumberU64() != bc.CurrentBlock().NumberU64()+1 { |
|
|
|
|
utils.Logger().Info().Uint64("curBlockNum", bc.CurrentBlock().NumberU64()).Uint64("receivedBlockNum", block.NumberU64()).Msg("[SYNC] Inappropriate block number, ignore!") |
|
|
|
|
utils.Logger().Debug().Uint64("curBlockNum", bc.CurrentBlock().NumberU64()).Uint64("receivedBlockNum", block.NumberU64()).Msg("[SYNC] Inappropriate block number, ignore!") |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|