mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 09:53:48 +00:00
core/rawdb: use common.Big0
This commit is contained in:
parent
f2320d832c
commit
268aba9b63
1 changed files with 1 additions and 1 deletions
|
|
@ -731,7 +731,7 @@ func writeAncientBlock(op ethdb.AncientWriteOp, block *types.Block, header *type
|
||||||
//
|
//
|
||||||
// The TD freezer table is retained for backward compatibility within this
|
// The TD freezer table is retained for backward compatibility within this
|
||||||
// major version (1.14.x) and will be discarded in the next major version.
|
// major version (1.14.x) and will be discarded in the next major version.
|
||||||
if err := op.Append(ChainFreezerDifficultyTable, num, big.NewInt(0)); err != nil {
|
if err := op.Append(ChainFreezerDifficultyTable, num, common.Big0); err != nil {
|
||||||
return fmt.Errorf("can't append block %d total difficulty: %v", num, err)
|
return fmt.Errorf("can't append block %d total difficulty: %v", num, err)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue