cmd, eth: fix dump config issue (#19825)
* eth: fix error when dump config with nil checkpoint * cmd/utils: ignore default datadir if it's already set.
This commit is contained in:
committed by
Péter Szilágyi
parent
72029f0f88
commit
252150918c
@ -150,8 +150,8 @@ type Config struct {
|
||||
RPCGasCap *big.Int `toml:",omitempty"`
|
||||
|
||||
// Checkpoint is a hardcoded checkpoint which can be nil.
|
||||
Checkpoint *params.TrustedCheckpoint
|
||||
Checkpoint *params.TrustedCheckpoint `toml:",omitempty"`
|
||||
|
||||
// CheckpointOracle is the configuration for checkpoint oracle.
|
||||
CheckpointOracle *params.CheckpointOracleConfig
|
||||
CheckpointOracle *params.CheckpointOracleConfig `toml:",omitempty"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user