diff --git a/core/chain_manager.go b/core/chain_manager.go index ade922217ed4159cd50f3a5e74e0e40d65784ceb..7e792864a5e3a25a25e1a6adad7f1d1d30d77181 100644 --- a/core/chain_manager.go +++ b/core/chain_manager.go @@ -498,7 +498,8 @@ func (self *ChainManager) InsertChain(chain types.Blocks) error { // Compare the TD of the last known block in the canonical chain to make sure it's greater. // At this point it's possible that a different chain (fork) becomes the new canonical chain. if td.Cmp(self.td) > 0 { - if block.Header().Number.Cmp(new(big.Int).Add(cblock.Header().Number, common.Big1)) < 0 { + //if block.Header().Number.Cmp(new(big.Int).Add(cblock.Header().Number, common.Big1)) < 0 { + if block.Number().Cmp(cblock.Number()) <= 0 { chash := cblock.Hash() hash := block.Hash()