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

Commit 202433a

Browse files
committed
feat: move devnet to shanghai
1 parent 128b137 commit 202433a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

cmd/state/stateless/stateless.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"encoding/hex"
99
"fmt"
1010
"io/ioutil"
11+
"math/big"
1112
"os"
1213
"os/signal"
1314
"strconv"
@@ -227,6 +228,9 @@ func Stateless(
227228
genesis = core.DeveloperGenesisBlock(0, core.DevnetEtherbase)
228229
chainConfig := genesis.Config
229230

231+
// Activate Shanghai from genesis
232+
chainConfig.ShanghaiTime = big.NewInt(0)
233+
230234
fmt.Printf("Genesis: %+v\n", genesis)
231235

232236
var preRoot common.Hash
@@ -496,7 +500,7 @@ func Stateless(
496500
finalRootFail = true
497501
} else if !binary {
498502
if err = s.CheckRoot(header.Root); err != nil {
499-
fmt.Printf("Wrong block hash %x in block %d\n", block.Hash(), blockNum)
503+
fmt.Printf("Wrong block hash %x in block %d: %v\n", block.Hash(), blockNum, err)
500504
finalRootFail = true
501505
}
502506
}

params/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ var (
118118
MuirGlacierBlock: big.NewInt(0),
119119
BerlinBlock: big.NewInt(0),
120120
LondonBlock: big.NewInt(0),
121+
ShanghaiTime: big.NewInt(0),
121122
Clique: &chain.CliqueConfig{Period: 0, Epoch: 30000},
122123
}
123124

0 commit comments

Comments
 (0)