mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 03:10:48 +00:00
cmd/utils, eth/ethconfig: polish
This commit is contained in:
parent
5e8c2aa302
commit
439929b975
3 changed files with 8 additions and 8 deletions
|
|
@ -1923,11 +1923,11 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {
|
|||
}
|
||||
if ctx.IsSet(EngineMaxReorgDepthFlag.Name) {
|
||||
cfg.EngineMaxReorgDepth = ctx.Uint64(EngineMaxReorgDepthFlag.Name)
|
||||
if cfg.EngineMaxReorgDepth != 0 {
|
||||
log.Info("Set engine API maximum reorg depth", "depth", cfg.EngineMaxReorgDepth)
|
||||
} else {
|
||||
log.Info("Engine API reorg depth limit disabled")
|
||||
}
|
||||
}
|
||||
if cfg.EngineMaxReorgDepth != 0 {
|
||||
log.Info("Engine API maximum reorg depth", "depth", cfg.EngineMaxReorgDepth)
|
||||
} else {
|
||||
log.Info("Engine API reorg depth limit disabled")
|
||||
}
|
||||
if ctx.Bool(NoDiscoverFlag.Name) {
|
||||
cfg.EthDiscoveryURLs, cfg.SnapDiscoveryURLs = []string{}, []string{}
|
||||
|
|
|
|||
|
|
@ -207,7 +207,7 @@ type Config struct {
|
|||
// EngineMaxReorgDepth is the maximum depth the chain head can be rewound
|
||||
// to an already-canonical ancestor by engine API forkchoiceUpdated calls
|
||||
// (0 = no limit).
|
||||
EngineMaxReorgDepth uint64
|
||||
EngineMaxReorgDepth uint64 `toml:",omitempty"`
|
||||
|
||||
// OverrideOsaka (TODO: remove after the fork)
|
||||
OverrideOsaka *uint64 `toml:",omitempty"`
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ func (c Config) MarshalTOML() (interface{}, error) {
|
|||
RPCGasCap uint64
|
||||
RPCEVMTimeout time.Duration
|
||||
RPCTxFeeCap float64
|
||||
EngineMaxReorgDepth uint64
|
||||
EngineMaxReorgDepth uint64 `toml:",omitempty"`
|
||||
OverrideOsaka *uint64 `toml:",omitempty"`
|
||||
OverrideAmsterdam *uint64 `toml:",omitempty"`
|
||||
OverrideBPO1 *uint64 `toml:",omitempty"`
|
||||
|
|
@ -181,7 +181,7 @@ func (c *Config) UnmarshalTOML(unmarshal func(interface{}) error) error {
|
|||
RPCGasCap *uint64
|
||||
RPCEVMTimeout *time.Duration
|
||||
RPCTxFeeCap *float64
|
||||
EngineMaxReorgDepth *uint64
|
||||
EngineMaxReorgDepth *uint64 `toml:",omitempty"`
|
||||
OverrideOsaka *uint64 `toml:",omitempty"`
|
||||
OverrideAmsterdam *uint64 `toml:",omitempty"`
|
||||
OverrideBPO1 *uint64 `toml:",omitempty"`
|
||||
|
|
|
|||
Loading…
Reference in a new issue