final commit of 1.10.14 update

This commit is contained in:
philip-morlier
2021-12-27 14:43:35 -08:00
parent 15b7e55b50
commit 007ba02e4b
3 changed files with 43 additions and 6 deletions
+1 -1
View File
@@ -1295,7 +1295,7 @@ func (bc *BlockChain) writeBlockAndSetHead(block *types.Block, receipts []*types
ptd := bc.GetTd(block.ParentHash(), block.NumberU64()-1)
if ptd == nil {
return WriteStatus(0), consensus.ErrUnknownAncestor
return NonStatTy, consensus.ErrUnknownAncestor
}
// Make sure no inconsistent state is leaked during insertion
externTd := new(big.Int).Add(block.Difficulty(), ptd)