From 268aba9b6319509252895195da46ccb89556e91d Mon Sep 17 00:00:00 2001 From: Gary Rong Date: Sat, 23 Nov 2024 08:47:39 +0800 Subject: [PATCH] core/rawdb: use common.Big0 --- core/rawdb/accessors_chain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/rawdb/accessors_chain.go b/core/rawdb/accessors_chain.go index d03bb1250f..1896986611 100644 --- a/core/rawdb/accessors_chain.go +++ b/core/rawdb/accessors_chain.go @@ -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