From ba112fea8448c485171b4834a106bfd9b15237b5 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Wed, 14 Aug 2024 19:46:46 +0200 Subject: [PATCH] eth/ethconfig: fix tag --- eth/ethconfig/config.go | 2 +- eth/ethconfig/gen_config.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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