Skip to content

Commit

Permalink
cmd/hivechain: disable difficulty-bomb-only forks
Browse files Browse the repository at this point in the history
  • Loading branch information
fjl committed Nov 7, 2023
1 parent b57cae8 commit f01b2d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 2 additions & 6 deletions cmd/hivechain/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ var (
"muirglacier",
"berlin",
"london",
"arrowglacier",
"grayglacier",
// "arrowglacier", "grayglacier" forks were difficulty bomb changes. They are not
// available here because hive doesn't support configuring them on clients.
"merge",
}

Expand Down Expand Up @@ -98,10 +98,6 @@ func (cfg *generatorConfig) createChainConfig() *params.ChainConfig {
chaincfg.BerlinBlock = new(big.Int).SetUint64(b)
case "london":
chaincfg.LondonBlock = new(big.Int).SetUint64(b)
case "arrowglacier":
chaincfg.ArrowGlacierBlock = new(big.Int).SetUint64(b)
case "grayglacier":
chaincfg.GrayGlacierBlock = new(big.Int).SetUint64(b)
case "merge":
chaincfg.MergeNetsplitBlock = new(big.Int).SetUint64(b)
chaincfg.TerminalTotalDifficultyPassed = true
Expand Down
2 changes: 0 additions & 2 deletions cmd/hivechain/output_forkenv.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ func (g *generator) writeForkEnv() error {
setNum("HIVE_FORK_PETERSBURG", cfg.PetersburgBlock)
setNum("HIVE_FORK_ISTANBUL", cfg.IstanbulBlock)
setNum("HIVE_FORK_MUIR_GLACIER", cfg.MuirGlacierBlock)
setNum("HIVE_FORK_ARROW_GLACIER", cfg.ArrowGlacierBlock)
setNum("HIVE_FORK_GRAY_GLACIER", cfg.GrayGlacierBlock)
setNum("HIVE_FORK_BERLIN", cfg.BerlinBlock)
setNum("HIVE_FORK_LONDON", cfg.LondonBlock)
setNum("HIVE_MERGE_BLOCK_ID", cfg.MergeNetsplitBlock)
Expand Down

0 comments on commit f01b2d3

Please sign in to comment.