eth/ethconfig: regenerate config

Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
Gary Rong 2025-06-19 12:46:26 +08:00
parent 22e1c629a0
commit ec518e341e

View file

@ -30,8 +30,6 @@ func (c Config) MarshalTOML() (interface{}, error) {
LogHistory uint64 `toml:",omitempty"`
LogNoHistory bool `toml:",omitempty"`
LogExportCheckpoints string
StateHistory uint64 `toml:",omitempty"`
StateScheme string `toml:",omitempty"`
RequiredBlocks map[uint64]common.Hash `toml:"-"`
SkipBcVersionCheck bool `toml:"-"`
DatabaseHandles int `toml:"-"`
@ -43,6 +41,9 @@ func (c Config) MarshalTOML() (interface{}, error) {
TrieTimeout time.Duration
SnapshotCache int
Preimages bool
StateHistory uint64 `toml:",omitempty"`
TrieDBJournal string
StateScheme string `toml:",omitempty"`
FilterLogCacheSize int
Miner miner.Config
TxPool legacypool.Config
@ -71,8 +72,6 @@ func (c Config) MarshalTOML() (interface{}, error) {
enc.LogHistory = c.LogHistory
enc.LogNoHistory = c.LogNoHistory
enc.LogExportCheckpoints = c.LogExportCheckpoints
enc.StateHistory = c.StateHistory
enc.StateScheme = c.StateScheme
enc.RequiredBlocks = c.RequiredBlocks
enc.SkipBcVersionCheck = c.SkipBcVersionCheck
enc.DatabaseHandles = c.DatabaseHandles
@ -84,6 +83,9 @@ func (c Config) MarshalTOML() (interface{}, error) {
enc.TrieTimeout = c.TrieTimeout
enc.SnapshotCache = c.SnapshotCache
enc.Preimages = c.Preimages
enc.StateHistory = c.StateHistory
enc.TrieDBJournal = c.TrieDBJournal
enc.StateScheme = c.StateScheme
enc.FilterLogCacheSize = c.FilterLogCacheSize
enc.Miner = c.Miner
enc.TxPool = c.TxPool
@ -116,8 +118,6 @@ func (c *Config) UnmarshalTOML(unmarshal func(interface{}) error) error {
LogHistory *uint64 `toml:",omitempty"`
LogNoHistory *bool `toml:",omitempty"`
LogExportCheckpoints *string
StateHistory *uint64 `toml:",omitempty"`
StateScheme *string `toml:",omitempty"`
RequiredBlocks map[uint64]common.Hash `toml:"-"`
SkipBcVersionCheck *bool `toml:"-"`
DatabaseHandles *int `toml:"-"`
@ -129,6 +129,9 @@ func (c *Config) UnmarshalTOML(unmarshal func(interface{}) error) error {
TrieTimeout *time.Duration
SnapshotCache *int
Preimages *bool
StateHistory *uint64 `toml:",omitempty"`
TrieDBJournal *string
StateScheme *string `toml:",omitempty"`
FilterLogCacheSize *int
Miner *miner.Config
TxPool *legacypool.Config
@ -186,12 +189,6 @@ func (c *Config) UnmarshalTOML(unmarshal func(interface{}) error) error {
if dec.LogExportCheckpoints != nil {
c.LogExportCheckpoints = *dec.LogExportCheckpoints
}
if dec.StateHistory != nil {
c.StateHistory = *dec.StateHistory
}
if dec.StateScheme != nil {
c.StateScheme = *dec.StateScheme
}
if dec.RequiredBlocks != nil {
c.RequiredBlocks = dec.RequiredBlocks
}
@ -225,6 +222,15 @@ func (c *Config) UnmarshalTOML(unmarshal func(interface{}) error) error {
if dec.Preimages != nil {
c.Preimages = *dec.Preimages
}
if dec.StateHistory != nil {
c.StateHistory = *dec.StateHistory
}
if dec.TrieDBJournal != nil {
c.TrieDBJournal = *dec.TrieDBJournal
}
if dec.StateScheme != nil {
c.StateScheme = *dec.StateScheme
}
if dec.FilterLogCacheSize != nil {
c.FilterLogCacheSize = *dec.FilterLogCacheSize
}