Skip to content

Commit 449d3f0

Browse files
authored
core,params: add holesky to default genesis function (#28903)
1 parent 1f50aa7 commit 449d3f0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

core/genesis.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,8 @@ func (g *Genesis) configOrDefault(ghash common.Hash) *params.ChainConfig {
413413
return g.Config
414414
case ghash == params.MainnetGenesisHash:
415415
return params.MainnetChainConfig
416+
case ghash == params.HoleskyGenesisHash:
417+
return params.HoleskyChainConfig
416418
case ghash == params.SepoliaGenesisHash:
417419
return params.SepoliaChainConfig
418420
case ghash == params.GoerliGenesisHash:

params/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ func (c *ChainConfig) CheckConfigForkOrder() error {
642642
lastFork.name, cur.name, cur.block)
643643
} else {
644644
return fmt.Errorf("unsupported fork ordering: %v not enabled, but %v enabled at timestamp %v",
645-
lastFork.name, cur.name, cur.timestamp)
645+
lastFork.name, cur.name, *cur.timestamp)
646646
}
647647

648648
// Fork (whether defined by block or timestamp) must follow the fork definition sequence
@@ -652,7 +652,7 @@ func (c *ChainConfig) CheckConfigForkOrder() error {
652652
lastFork.name, lastFork.block, cur.name, cur.block)
653653
} else if lastFork.timestamp != nil && *lastFork.timestamp > *cur.timestamp {
654654
return fmt.Errorf("unsupported fork ordering: %v enabled at timestamp %v, but %v enabled at timestamp %v",
655-
lastFork.name, lastFork.timestamp, cur.name, cur.timestamp)
655+
lastFork.name, *lastFork.timestamp, cur.name, *cur.timestamp)
656656
}
657657

658658
// Timestamp based forks can follow block based ones, but not the other way around

0 commit comments

Comments
 (0)