From b374378446f69cd9da1c0a51a6350ac8bf7237d3 Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Wed, 16 Oct 2024 21:40:36 +0700 Subject: [PATCH] update test chain configs which aren't merged to have a known TTD (max possible). Otherwise, we cannot create the consensus engine if ttd==nil. --- params/config.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/params/config.go b/params/config.go index 280972b45f..0f3fc22318 100644 --- a/params/config.go +++ b/params/config.go @@ -18,6 +18,7 @@ package params import ( "fmt" + "github.com/ethereum/go-ethereum/common/math" "math/big" "github.com/ethereum/go-ethereum/common" @@ -127,12 +128,12 @@ var ( LondonBlock: big.NewInt(0), ArrowGlacierBlock: big.NewInt(0), GrayGlacierBlock: big.NewInt(0), + TerminalTotalDifficulty: big.NewInt(math.MaxInt64), MergeNetsplitBlock: nil, ShanghaiTime: nil, CancunTime: nil, PragueTime: nil, VerkleTime: nil, - TerminalTotalDifficulty: nil, Ethash: new(EthashConfig), Clique: nil, } @@ -181,7 +182,7 @@ var ( CancunTime: nil, PragueTime: nil, VerkleTime: nil, - TerminalTotalDifficulty: nil, + TerminalTotalDifficulty: big.NewInt(math.MaxInt64), Ethash: nil, Clique: &CliqueConfig{Period: 0, Epoch: 30000}, } @@ -210,7 +211,7 @@ var ( CancunTime: nil, PragueTime: nil, VerkleTime: nil, - TerminalTotalDifficulty: nil, + TerminalTotalDifficulty: big.NewInt(math.MaxInt64), Ethash: new(EthashConfig), Clique: nil, }