mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
fix: decide if genesis is verkle using genesis timestamp (#290)
* fix: decide if genesis is verkle using genesis timestamp * fix linter message
This commit is contained in:
parent
7d02a604d7
commit
bea12cc674
1 changed files with 2 additions and 1 deletions
|
|
@ -20,6 +20,7 @@ import (
|
|||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"math/big"
|
||||
"os"
|
||||
"runtime"
|
||||
"strconv"
|
||||
|
|
@ -214,7 +215,7 @@ func initGenesis(ctx *cli.Context) error {
|
|||
}
|
||||
triedb := trie.NewDatabaseWithConfig(chaindb, &trie.Config{
|
||||
Preimages: ctx.Bool(utils.CachePreimagesFlag.Name),
|
||||
Verkle: true,
|
||||
Verkle: genesis.Config.IsPrague(big.NewInt(0), genesis.Timestamp),
|
||||
})
|
||||
_, hash, err := core.SetupGenesisBlockWithOverride(chaindb, triedb, genesis, &overrides)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue