mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
eth/ethconfig: regenerate config
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
22e1c629a0
commit
ec518e341e
1 changed files with 18 additions and 12 deletions
|
|
@ -30,8 +30,6 @@ func (c Config) MarshalTOML() (interface{}, error) {
|
||||||
LogHistory uint64 `toml:",omitempty"`
|
LogHistory uint64 `toml:",omitempty"`
|
||||||
LogNoHistory bool `toml:",omitempty"`
|
LogNoHistory bool `toml:",omitempty"`
|
||||||
LogExportCheckpoints string
|
LogExportCheckpoints string
|
||||||
StateHistory uint64 `toml:",omitempty"`
|
|
||||||
StateScheme string `toml:",omitempty"`
|
|
||||||
RequiredBlocks map[uint64]common.Hash `toml:"-"`
|
RequiredBlocks map[uint64]common.Hash `toml:"-"`
|
||||||
SkipBcVersionCheck bool `toml:"-"`
|
SkipBcVersionCheck bool `toml:"-"`
|
||||||
DatabaseHandles int `toml:"-"`
|
DatabaseHandles int `toml:"-"`
|
||||||
|
|
@ -43,6 +41,9 @@ func (c Config) MarshalTOML() (interface{}, error) {
|
||||||
TrieTimeout time.Duration
|
TrieTimeout time.Duration
|
||||||
SnapshotCache int
|
SnapshotCache int
|
||||||
Preimages bool
|
Preimages bool
|
||||||
|
StateHistory uint64 `toml:",omitempty"`
|
||||||
|
TrieDBJournal string
|
||||||
|
StateScheme string `toml:",omitempty"`
|
||||||
FilterLogCacheSize int
|
FilterLogCacheSize int
|
||||||
Miner miner.Config
|
Miner miner.Config
|
||||||
TxPool legacypool.Config
|
TxPool legacypool.Config
|
||||||
|
|
@ -71,8 +72,6 @@ func (c Config) MarshalTOML() (interface{}, error) {
|
||||||
enc.LogHistory = c.LogHistory
|
enc.LogHistory = c.LogHistory
|
||||||
enc.LogNoHistory = c.LogNoHistory
|
enc.LogNoHistory = c.LogNoHistory
|
||||||
enc.LogExportCheckpoints = c.LogExportCheckpoints
|
enc.LogExportCheckpoints = c.LogExportCheckpoints
|
||||||
enc.StateHistory = c.StateHistory
|
|
||||||
enc.StateScheme = c.StateScheme
|
|
||||||
enc.RequiredBlocks = c.RequiredBlocks
|
enc.RequiredBlocks = c.RequiredBlocks
|
||||||
enc.SkipBcVersionCheck = c.SkipBcVersionCheck
|
enc.SkipBcVersionCheck = c.SkipBcVersionCheck
|
||||||
enc.DatabaseHandles = c.DatabaseHandles
|
enc.DatabaseHandles = c.DatabaseHandles
|
||||||
|
|
@ -84,6 +83,9 @@ func (c Config) MarshalTOML() (interface{}, error) {
|
||||||
enc.TrieTimeout = c.TrieTimeout
|
enc.TrieTimeout = c.TrieTimeout
|
||||||
enc.SnapshotCache = c.SnapshotCache
|
enc.SnapshotCache = c.SnapshotCache
|
||||||
enc.Preimages = c.Preimages
|
enc.Preimages = c.Preimages
|
||||||
|
enc.StateHistory = c.StateHistory
|
||||||
|
enc.TrieDBJournal = c.TrieDBJournal
|
||||||
|
enc.StateScheme = c.StateScheme
|
||||||
enc.FilterLogCacheSize = c.FilterLogCacheSize
|
enc.FilterLogCacheSize = c.FilterLogCacheSize
|
||||||
enc.Miner = c.Miner
|
enc.Miner = c.Miner
|
||||||
enc.TxPool = c.TxPool
|
enc.TxPool = c.TxPool
|
||||||
|
|
@ -116,8 +118,6 @@ func (c *Config) UnmarshalTOML(unmarshal func(interface{}) error) error {
|
||||||
LogHistory *uint64 `toml:",omitempty"`
|
LogHistory *uint64 `toml:",omitempty"`
|
||||||
LogNoHistory *bool `toml:",omitempty"`
|
LogNoHistory *bool `toml:",omitempty"`
|
||||||
LogExportCheckpoints *string
|
LogExportCheckpoints *string
|
||||||
StateHistory *uint64 `toml:",omitempty"`
|
|
||||||
StateScheme *string `toml:",omitempty"`
|
|
||||||
RequiredBlocks map[uint64]common.Hash `toml:"-"`
|
RequiredBlocks map[uint64]common.Hash `toml:"-"`
|
||||||
SkipBcVersionCheck *bool `toml:"-"`
|
SkipBcVersionCheck *bool `toml:"-"`
|
||||||
DatabaseHandles *int `toml:"-"`
|
DatabaseHandles *int `toml:"-"`
|
||||||
|
|
@ -129,6 +129,9 @@ func (c *Config) UnmarshalTOML(unmarshal func(interface{}) error) error {
|
||||||
TrieTimeout *time.Duration
|
TrieTimeout *time.Duration
|
||||||
SnapshotCache *int
|
SnapshotCache *int
|
||||||
Preimages *bool
|
Preimages *bool
|
||||||
|
StateHistory *uint64 `toml:",omitempty"`
|
||||||
|
TrieDBJournal *string
|
||||||
|
StateScheme *string `toml:",omitempty"`
|
||||||
FilterLogCacheSize *int
|
FilterLogCacheSize *int
|
||||||
Miner *miner.Config
|
Miner *miner.Config
|
||||||
TxPool *legacypool.Config
|
TxPool *legacypool.Config
|
||||||
|
|
@ -186,12 +189,6 @@ func (c *Config) UnmarshalTOML(unmarshal func(interface{}) error) error {
|
||||||
if dec.LogExportCheckpoints != nil {
|
if dec.LogExportCheckpoints != nil {
|
||||||
c.LogExportCheckpoints = *dec.LogExportCheckpoints
|
c.LogExportCheckpoints = *dec.LogExportCheckpoints
|
||||||
}
|
}
|
||||||
if dec.StateHistory != nil {
|
|
||||||
c.StateHistory = *dec.StateHistory
|
|
||||||
}
|
|
||||||
if dec.StateScheme != nil {
|
|
||||||
c.StateScheme = *dec.StateScheme
|
|
||||||
}
|
|
||||||
if dec.RequiredBlocks != nil {
|
if dec.RequiredBlocks != nil {
|
||||||
c.RequiredBlocks = dec.RequiredBlocks
|
c.RequiredBlocks = dec.RequiredBlocks
|
||||||
}
|
}
|
||||||
|
|
@ -225,6 +222,15 @@ func (c *Config) UnmarshalTOML(unmarshal func(interface{}) error) error {
|
||||||
if dec.Preimages != nil {
|
if dec.Preimages != nil {
|
||||||
c.Preimages = *dec.Preimages
|
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 {
|
if dec.FilterLogCacheSize != nil {
|
||||||
c.FilterLogCacheSize = *dec.FilterLogCacheSize
|
c.FilterLogCacheSize = *dec.FilterLogCacheSize
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue