fix nil TD when writing

This commit is contained in:
Roy Crihfield 2023-06-23 19:32:42 +08:00
parent 32205c0f8d
commit 0d9a5f3828

View File

@ -710,7 +710,7 @@ func (sds *Service) writeStateDiff(block *types.Block, parentRoot common.Hash, p
return nil
}
var totalDifficulty *big.Int
var totalDifficulty = big.NewInt(0)
var receipts types.Receipts
var err error
var tx interfaces.Batch