Skip to content

Commit

Permalink
fix: decide if genesis is verkle using genesis timestamp (#290)
Browse files Browse the repository at this point in the history
* fix: decide if genesis is verkle using genesis timestamp

* fix linter message
  • Loading branch information
gballet committed May 8, 2024
1 parent 3b26270 commit bab9960
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/geth/chaincmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"encoding/json"
"errors"
"fmt"
"math/big"
"os"
"runtime"
"strconv"
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit bab9960

Please sign in to comment.