fix: activate Shanghai in test

This commit is contained in:
Guillaume Ballet 2023-08-04 12:16:53 +02:00
parent 9a0784d68a
commit e2ac75246e
2 changed files with 4 additions and 3 deletions

View file

@ -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()

View file

@ -438,6 +438,7 @@ var (
func TestProcessVerkle(t *testing.T) {
var (
cancuntime uint64 = 0
shanghaiTime uint64 = 0
config = &params.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)