mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
fix: activate Shanghai in test
This commit is contained in:
parent
9a0784d68a
commit
e2ac75246e
2 changed files with 4 additions and 3 deletions
|
|
@ -344,7 +344,6 @@ func SetupGenesisBlockWithOverride(db ethdb.Database, triedb *trie.Database, gen
|
|||
// We have the genesis block in database(perhaps in ancient database)
|
||||
// but the corresponding state is missing.
|
||||
header := rawdb.ReadHeader(db, stored, 0)
|
||||
|
||||
if header.Root != types.EmptyRootHash && !rawdb.HasLegacyTrieNode(db, header.Root) {
|
||||
if genesis == nil {
|
||||
genesis = DefaultGenesisBlock()
|
||||
|
|
|
|||
|
|
@ -438,6 +438,7 @@ var (
|
|||
func TestProcessVerkle(t *testing.T) {
|
||||
var (
|
||||
cancuntime uint64 = 0
|
||||
shanghaiTime uint64 = 0
|
||||
config = ¶ms.ChainConfig{
|
||||
ChainID: big.NewInt(1),
|
||||
HomesteadBlock: big.NewInt(0),
|
||||
|
|
@ -452,6 +453,7 @@ func TestProcessVerkle(t *testing.T) {
|
|||
BerlinBlock: big.NewInt(0),
|
||||
LondonBlock: big.NewInt(0),
|
||||
Ethash: new(params.EthashConfig),
|
||||
ShanghaiTime: &shanghaiTime,
|
||||
CancunTime: &cancuntime,
|
||||
}
|
||||
signer = types.LatestSigner(config)
|
||||
|
|
|
|||
Loading…
Reference in a new issue