mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 19:50:36 +00:00
added ovveride merge fork block (#4027)
This commit is contained in:
parent
77560b6732
commit
af5bdceb14
@ -138,6 +138,10 @@ var (
|
||||
Name: "override.terminaltotaldifficulty",
|
||||
Usage: "Manually specify TerminalTotalDifficulty, overriding the bundled setting",
|
||||
}
|
||||
OverrideMergeForkBlock = BigFlag{
|
||||
Name: "override.mergeForkBlock",
|
||||
Usage: "Manually specify TerminalTotalDifficulty, overriding the bundled setting",
|
||||
}
|
||||
// Ethash settings
|
||||
EthashCachesInMemoryFlag = cli.IntFlag{
|
||||
Name: "ethash.cachesinmem",
|
||||
@ -1500,6 +1504,9 @@ func SetEthConfig(ctx *cli.Context, nodeConfig *node.Config, cfg *ethconfig.Conf
|
||||
if ctx.GlobalIsSet(OverrideTerminalTotalDifficulty.Name) {
|
||||
cfg.Genesis.Config.TerminalTotalDifficulty = GlobalBig(ctx, OverrideTerminalTotalDifficulty.Name)
|
||||
}
|
||||
if ctx.GlobalIsSet(OverrideMergeForkBlock.Name) {
|
||||
cfg.Genesis.Config.MergeForkBlock = GlobalBig(ctx, OverrideMergeForkBlock.Name)
|
||||
}
|
||||
}
|
||||
|
||||
// SetDNSDiscoveryDefaults configures DNS discovery with the given URL if
|
||||
|
@ -125,4 +125,5 @@ var DefaultFlags = []cli.Flag{
|
||||
utils.WithoutHeimdallFlag,
|
||||
utils.EthStatsURLFlag,
|
||||
utils.OverrideTerminalTotalDifficulty,
|
||||
utils.OverrideMergeForkBlock,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user