Skip to content

Commit

Permalink
test: use genesis.config for unknown genesis hash
Browse files Browse the repository at this point in the history
  • Loading branch information
brilliant-lx committed May 29, 2023
1 parent 27c52b9 commit 5c06505
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,10 @@ func (g *Genesis) configOrDefault(ghash common.Hash) *params.ChainConfig {
case ghash == params.RialtoGenesisHash:
defaultConfig = params.RialtoChainConfig
default:
if g != nil {
// it could be a custom config for QA test, just return
return g.Config
}
defaultConfig = params.AllEthashProtocolChanges
}
if g == nil || g.Config == nil {
Expand Down

0 comments on commit 5c06505

Please sign in to comment.