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.

This commit is contained in:
Jared Wasinger 2024-10-16 21:40:36 +07:00
parent 58018396af
commit b374378446

View file

@ -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,
}