Skip to content

Commit

Permalink
fix(genesis): fix cancun timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
4rgon4ut committed Jan 31, 2024
1 parent 451ad95 commit 13bb40a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion simulators/ethereum/engine/client/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ package client
import (
"encoding/json"
"fmt"
"github.com/ethereum/go-ethereum/core"
"math/big"
"strconv"
"time"

"github.com/ethereum/go-ethereum/core"

"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/params"
Expand Down Expand Up @@ -545,6 +546,8 @@ func (v *ErigonGenesis) SetTimestamp(timestamp int64, cancun bool) {
v.ErigonConfig.ShanghaiTimestamp = big.NewInt(timestamp)
if cancun {
v.ErigonConfig.CancunTime = big.NewInt(timestamp)
} else {
v.ErigonConfig.CancunTime = big.NewInt(timestamp+12000000)
}
}

Expand Down

0 comments on commit 13bb40a

Please sign in to comment.