forked from cerc-io/plugeth
all: make timestamp-based fork checks based on uint64 (#26474)
This PR changes the API so that uint64 is used for fork timestamps. It's a good choice because types.Header also uses uint64 for time. Co-authored-by: Felix Lange <fjl@twurst.com>
This commit is contained in:
co-authored by
Felix Lange
parent
59a48e0289
commit
2b57a27d9e
+3
-1
@@ -24,6 +24,8 @@ import (
|
||||
"github.com/ethereum/go-ethereum/params"
|
||||
)
|
||||
|
||||
func u64(val uint64) *uint64 { return &val }
|
||||
|
||||
// Forks table defines supported forks and their chain config.
|
||||
var Forks = map[string]*params.ChainConfig{
|
||||
"Frontier": {
|
||||
@@ -264,7 +266,7 @@ var Forks = map[string]*params.ChainConfig{
|
||||
ArrowGlacierBlock: big.NewInt(0),
|
||||
MergeNetsplitBlock: big.NewInt(0),
|
||||
TerminalTotalDifficulty: big.NewInt(0),
|
||||
ShanghaiTime: big.NewInt(0),
|
||||
ShanghaiTime: u64(0),
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -183,7 +183,7 @@ func runBenchmark(b *testing.B, t *StateTest) {
|
||||
b.Error(err)
|
||||
return
|
||||
}
|
||||
var rules = config.Rules(new(big.Int), false, new(big.Int))
|
||||
var rules = config.Rules(new(big.Int), false, 0)
|
||||
|
||||
vmconfig.ExtraEips = eips
|
||||
block := t.genesis(config).ToBlock()
|
||||
|
||||
Reference in New Issue
Block a user