Skip to content

Commit

Permalink
core/rawdb: use common.Big0
Browse files Browse the repository at this point in the history
  • Loading branch information
rjl493456442 committed Nov 23, 2024
1 parent bb9d0bb commit 948251b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/rawdb/accessors_chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
// 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 nil
Expand Down

0 comments on commit 948251b

Please sign in to comment.