update config
This commit is contained in:
parent
39ddcdc9dc
commit
42a168f6e4
@ -110,6 +110,8 @@ type Config struct {
|
|||||||
ProxyOnError bool
|
ProxyOnError bool
|
||||||
GetLogsBlockLimit int64
|
GetLogsBlockLimit int64
|
||||||
NodeNetworkID string
|
NodeNetworkID string
|
||||||
|
TracingEnabled bool
|
||||||
|
TracingPublic bool
|
||||||
|
|
||||||
// Cache configuration.
|
// Cache configuration.
|
||||||
GroupCache *ethServerShared.GroupCacheConfig
|
GroupCache *ethServerShared.GroupCacheConfig
|
||||||
@ -154,6 +156,8 @@ func NewConfig() (*Config, error) {
|
|||||||
c.ForwardGetStorageAt = viper.GetBool("ethereum.forwardGetStorageAt")
|
c.ForwardGetStorageAt = viper.GetBool("ethereum.forwardGetStorageAt")
|
||||||
c.ProxyOnError = viper.GetBool("ethereum.proxyOnError")
|
c.ProxyOnError = viper.GetBool("ethereum.proxyOnError")
|
||||||
c.EthHttpEndpoint = ethHTTPEndpoint
|
c.EthHttpEndpoint = ethHTTPEndpoint
|
||||||
|
c.TracingEnabled = viper.GetBool("ethereum.tracingEnabled")
|
||||||
|
c.TracingPublic = viper.GetBool("ethereum.tracingPublic")
|
||||||
|
|
||||||
if viper.IsSet("ethereum.getLogsBlockLimit") {
|
if viper.IsSet("ethereum.getLogsBlockLimit") {
|
||||||
c.GetLogsBlockLimit = viper.GetInt64("ethereum.getLogsBlockLimit")
|
c.GetLogsBlockLimit = viper.GetInt64("ethereum.getLogsBlockLimit")
|
||||||
|
Loading…
Reference in New Issue
Block a user