Skip to content

Commit

Permalink
overwrite genesis config
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlyguo committed Oct 28, 2024
1 parent 69ce8d9 commit 326df60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ func SetupGenesisBlockWithOverride(db ethdb.Database, triedb *trie.Database, gen
rawdb.WriteChainConfig(db, stored, newcfg)
return newcfg, stored, nil
}
rawdb.WriteChainConfig(db, stored, newcfg)
storedData, _ := json.Marshal(storedcfg)
// Special case: if a private network is being used (no genesis and also no
// mainnet hash in the database), we must not apply the `configOrDefault`
Expand Down

0 comments on commit 326df60

Please sign in to comment.