Skip to content

Commit

Permalink
cmd/hivechain: write ttd passed to genesis if merged (#913)
Browse files Browse the repository at this point in the history
  • Loading branch information
lightclient authored Oct 20, 2023
1 parent 90c3cbd commit 2dff983
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/hivechain/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ func (cfg *generatorConfig) createChainConfig() *params.ChainConfig {
chaincfg.GrayGlacierBlock = new(big.Int).SetUint64(b)
case "merge":
chaincfg.MergeNetsplitBlock = new(big.Int).SetUint64(b)
chaincfg.TerminalTotalDifficultyPassed = true
// time-based forks
case "shanghai":
chaincfg.ShanghaiTime = &timestamp
Expand Down

0 comments on commit 2dff983

Please sign in to comment.