|
|
|
@ -29,12 +29,6 @@ func (c Config) MarshalTOML() (interface{}, error) { |
|
|
|
|
StateHistory uint64 `toml:",omitempty"` |
|
|
|
|
StateScheme string `toml:",omitempty"` |
|
|
|
|
RequiredBlocks map[uint64]common.Hash `toml:"-"` |
|
|
|
|
LightServ int `toml:",omitempty"` |
|
|
|
|
LightIngress int `toml:",omitempty"` |
|
|
|
|
LightEgress int `toml:",omitempty"` |
|
|
|
|
LightPeers int `toml:",omitempty"` |
|
|
|
|
LightNoPrune bool `toml:",omitempty"` |
|
|
|
|
LightNoSyncServe bool `toml:",omitempty"` |
|
|
|
|
SkipBcVersionCheck bool `toml:"-"` |
|
|
|
|
DatabaseHandles int `toml:"-"` |
|
|
|
|
DatabaseCache int |
|
|
|
@ -73,12 +67,6 @@ func (c Config) MarshalTOML() (interface{}, error) { |
|
|
|
|
enc.StateHistory = c.StateHistory |
|
|
|
|
enc.StateScheme = c.StateScheme |
|
|
|
|
enc.RequiredBlocks = c.RequiredBlocks |
|
|
|
|
enc.LightServ = c.LightServ |
|
|
|
|
enc.LightIngress = c.LightIngress |
|
|
|
|
enc.LightEgress = c.LightEgress |
|
|
|
|
enc.LightPeers = c.LightPeers |
|
|
|
|
enc.LightNoPrune = c.LightNoPrune |
|
|
|
|
enc.LightNoSyncServe = c.LightNoSyncServe |
|
|
|
|
enc.SkipBcVersionCheck = c.SkipBcVersionCheck |
|
|
|
|
enc.DatabaseHandles = c.DatabaseHandles |
|
|
|
|
enc.DatabaseCache = c.DatabaseCache |
|
|
|
@ -121,12 +109,6 @@ func (c *Config) UnmarshalTOML(unmarshal func(interface{}) error) error { |
|
|
|
|
StateHistory *uint64 `toml:",omitempty"` |
|
|
|
|
StateScheme *string `toml:",omitempty"` |
|
|
|
|
RequiredBlocks map[uint64]common.Hash `toml:"-"` |
|
|
|
|
LightServ *int `toml:",omitempty"` |
|
|
|
|
LightIngress *int `toml:",omitempty"` |
|
|
|
|
LightEgress *int `toml:",omitempty"` |
|
|
|
|
LightPeers *int `toml:",omitempty"` |
|
|
|
|
LightNoPrune *bool `toml:",omitempty"` |
|
|
|
|
LightNoSyncServe *bool `toml:",omitempty"` |
|
|
|
|
SkipBcVersionCheck *bool `toml:"-"` |
|
|
|
|
DatabaseHandles *int `toml:"-"` |
|
|
|
|
DatabaseCache *int |
|
|
|
@ -192,24 +174,6 @@ func (c *Config) UnmarshalTOML(unmarshal func(interface{}) error) error { |
|
|
|
|
if dec.RequiredBlocks != nil { |
|
|
|
|
c.RequiredBlocks = dec.RequiredBlocks |
|
|
|
|
} |
|
|
|
|
if dec.LightServ != nil { |
|
|
|
|
c.LightServ = *dec.LightServ |
|
|
|
|
} |
|
|
|
|
if dec.LightIngress != nil { |
|
|
|
|
c.LightIngress = *dec.LightIngress |
|
|
|
|
} |
|
|
|
|
if dec.LightEgress != nil { |
|
|
|
|
c.LightEgress = *dec.LightEgress |
|
|
|
|
} |
|
|
|
|
if dec.LightPeers != nil { |
|
|
|
|
c.LightPeers = *dec.LightPeers |
|
|
|
|
} |
|
|
|
|
if dec.LightNoPrune != nil { |
|
|
|
|
c.LightNoPrune = *dec.LightNoPrune |
|
|
|
|
} |
|
|
|
|
if dec.LightNoSyncServe != nil { |
|
|
|
|
c.LightNoSyncServe = *dec.LightNoSyncServe |
|
|
|
|
} |
|
|
|
|
if dec.SkipBcVersionCheck != nil { |
|
|
|
|
c.SkipBcVersionCheck = *dec.SkipBcVersionCheck |
|
|
|
|
} |
|
|
|
|