diff --git a/eth/ethconfig/config.go b/eth/ethconfig/config.go index 2da30216e0..28e1fccda1 100644 --- a/eth/ethconfig/config.go +++ b/eth/ethconfig/config.go @@ -107,7 +107,7 @@ type Config struct { // Deprecated: LES server has been removed // We retain this field for compatibility with config files created by `geth dumpconfig`. - LightPeers int `toml:"-"` + LightPeers int `toml:",omitempty"` // Database options SkipBcVersionCheck bool `toml:"-"` diff --git a/eth/ethconfig/gen_config.go b/eth/ethconfig/gen_config.go index 3ba377b5da..e2ec6f6691 100644 --- a/eth/ethconfig/gen_config.go +++ b/eth/ethconfig/gen_config.go @@ -29,7 +29,7 @@ func (c Config) MarshalTOML() (interface{}, error) { StateHistory uint64 `toml:",omitempty"` StateScheme string `toml:",omitempty"` RequiredBlocks map[uint64]common.Hash `toml:"-"` - LightPeers int `toml:"-"` + LightPeers int `toml:",omitempty"` SkipBcVersionCheck bool `toml:"-"` DatabaseHandles int `toml:"-"` DatabaseCache int @@ -111,7 +111,7 @@ func (c *Config) UnmarshalTOML(unmarshal func(interface{}) error) error { StateHistory *uint64 `toml:",omitempty"` StateScheme *string `toml:",omitempty"` RequiredBlocks map[uint64]common.Hash `toml:"-"` - LightPeers *int `toml:"-"` + LightPeers *int `toml:",omitempty"` SkipBcVersionCheck *bool `toml:"-"` DatabaseHandles *int `toml:"-"` DatabaseCache *int