Skip to content

Commit

Permalink
force verkle activation at genesis
Browse files Browse the repository at this point in the history
  • Loading branch information
gballet committed Oct 12, 2023
1 parent fc5410b commit 91e90b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (ga *GenesisAlloc) deriveHash(cfg *params.ChainConfig, timestamp uint64) (c
// Create an ephemeral in-memory database for computing hash,
// all the derived states will be discarded to not pollute disk.
db := state.NewDatabase(rawdb.NewMemoryDatabase())
if cfg.IsPrague(big.NewInt(int64(0)), timestamp) {
if /* cfg.IsPrague(big.NewInt(int64(0)), timestamp) */ true {
db.EndVerkleTransition()
}
statedb, err := state.New(types.EmptyRootHash, db, nil)
Expand Down Expand Up @@ -153,7 +153,7 @@ func (ga *GenesisAlloc) flush(db ethdb.Database, triedb *trie.Database, blockhas
}

// End the verkle conversion at genesis if the fork block is 0
if triedb.IsVerkle() {
if /*triedb.IsVerkle() */ true {
statedb.Database().EndVerkleTransition()
}

Expand Down

0 comments on commit 91e90b6

Please sign in to comment.