Skip to content

Commit

Permalink
fix: configure loading for testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
egonspace committed May 21, 2024
1 parent 439c842 commit 39f6894
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,10 @@ func SetupGenesisBlockWithOverride(db ethdb.Database, genesis *Genesis, override
// chain config as that would be AllProtocolChanges (applying any new fork
// on top of an existing private network genesis block). In that case, only
// apply the overrides.
if genesis == nil && !(stored == params.MainnetGenesisHash || stored == params.WemixMainnetGenesisHash) {
if genesis == nil &&
!(stored == params.MainnetGenesisHash ||
stored == params.WemixMainnetGenesisHash ||
stored == params.WemixTestnetGenesisHash) {
newcfg = storedcfg
if overrideArrowGlacier != nil {
newcfg.ArrowGlacierBlock = overrideArrowGlacier
Expand Down

0 comments on commit 39f6894

Please sign in to comment.