|
|
@ -46,7 +46,6 @@ func (c Config) MarshalTOML() (interface{}, error) { |
|
|
|
EnablePreimageRecording bool |
|
|
|
EnablePreimageRecording bool |
|
|
|
VMTrace string |
|
|
|
VMTrace string |
|
|
|
VMTraceJsonConfig string |
|
|
|
VMTraceJsonConfig string |
|
|
|
DocRoot string `toml:"-"` |
|
|
|
|
|
|
|
RPCGasCap uint64 |
|
|
|
RPCGasCap uint64 |
|
|
|
RPCEVMTimeout time.Duration |
|
|
|
RPCEVMTimeout time.Duration |
|
|
|
RPCTxFeeCap float64 |
|
|
|
RPCTxFeeCap float64 |
|
|
@ -83,7 +82,6 @@ func (c Config) MarshalTOML() (interface{}, error) { |
|
|
|
enc.EnablePreimageRecording = c.EnablePreimageRecording |
|
|
|
enc.EnablePreimageRecording = c.EnablePreimageRecording |
|
|
|
enc.VMTrace = c.VMTrace |
|
|
|
enc.VMTrace = c.VMTrace |
|
|
|
enc.VMTraceJsonConfig = c.VMTraceJsonConfig |
|
|
|
enc.VMTraceJsonConfig = c.VMTraceJsonConfig |
|
|
|
enc.DocRoot = c.DocRoot |
|
|
|
|
|
|
|
enc.RPCGasCap = c.RPCGasCap |
|
|
|
enc.RPCGasCap = c.RPCGasCap |
|
|
|
enc.RPCEVMTimeout = c.RPCEVMTimeout |
|
|
|
enc.RPCEVMTimeout = c.RPCEVMTimeout |
|
|
|
enc.RPCTxFeeCap = c.RPCTxFeeCap |
|
|
|
enc.RPCTxFeeCap = c.RPCTxFeeCap |
|
|
@ -124,7 +122,6 @@ func (c *Config) UnmarshalTOML(unmarshal func(interface{}) error) error { |
|
|
|
EnablePreimageRecording *bool |
|
|
|
EnablePreimageRecording *bool |
|
|
|
VMTrace *string |
|
|
|
VMTrace *string |
|
|
|
VMTraceJsonConfig *string |
|
|
|
VMTraceJsonConfig *string |
|
|
|
DocRoot *string `toml:"-"` |
|
|
|
|
|
|
|
RPCGasCap *uint64 |
|
|
|
RPCGasCap *uint64 |
|
|
|
RPCEVMTimeout *time.Duration |
|
|
|
RPCEVMTimeout *time.Duration |
|
|
|
RPCTxFeeCap *float64 |
|
|
|
RPCTxFeeCap *float64 |
|
|
@ -222,9 +219,6 @@ func (c *Config) UnmarshalTOML(unmarshal func(interface{}) error) error { |
|
|
|
if dec.VMTraceJsonConfig != nil { |
|
|
|
if dec.VMTraceJsonConfig != nil { |
|
|
|
c.VMTraceJsonConfig = *dec.VMTraceJsonConfig |
|
|
|
c.VMTraceJsonConfig = *dec.VMTraceJsonConfig |
|
|
|
} |
|
|
|
} |
|
|
|
if dec.DocRoot != nil { |
|
|
|
|
|
|
|
c.DocRoot = *dec.DocRoot |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if dec.RPCGasCap != nil { |
|
|
|
if dec.RPCGasCap != nil { |
|
|
|
c.RPCGasCap = *dec.RPCGasCap |
|
|
|
c.RPCGasCap = *dec.RPCGasCap |
|
|
|
} |
|
|
|
} |
|
|
|