Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
feat: move devnet to shanghai
Browse files Browse the repository at this point in the history
  • Loading branch information
hadjiszs committed Dec 18, 2023
1 parent 128b137 commit 202433a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/state/stateless/stateless.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"encoding/hex"
"fmt"
"io/ioutil"
"math/big"
"os"
"os/signal"
"strconv"
Expand Down Expand Up @@ -227,6 +228,9 @@ func Stateless(
genesis = core.DeveloperGenesisBlock(0, core.DevnetEtherbase)
chainConfig := genesis.Config

// Activate Shanghai from genesis
chainConfig.ShanghaiTime = big.NewInt(0)

fmt.Printf("Genesis: %+v\n", genesis)

var preRoot common.Hash
Expand Down Expand Up @@ -496,7 +500,7 @@ func Stateless(
finalRootFail = true
} else if !binary {
if err = s.CheckRoot(header.Root); err != nil {
fmt.Printf("Wrong block hash %x in block %d\n", block.Hash(), blockNum)
fmt.Printf("Wrong block hash %x in block %d: %v\n", block.Hash(), blockNum, err)
finalRootFail = true
}
}
Expand Down
1 change: 1 addition & 0 deletions params/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ var (
MuirGlacierBlock: big.NewInt(0),
BerlinBlock: big.NewInt(0),
LondonBlock: big.NewInt(0),
ShanghaiTime: big.NewInt(0),
Clique: &chain.CliqueConfig{Period: 0, Epoch: 30000},
}

Expand Down

0 comments on commit 202433a

Please sign in to comment.