Skip to content

Commit

Permalink
read 'json-rpc.allow-unprotected-txs' from app.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamer-zq committed Apr 3, 2024
1 parent 69d5cc5 commit de4b07e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ func GetConfig(v *viper.Viper) (Config, error) {
BlockRangeCap: v.GetInt32("json-rpc.block-range-cap"),
HTTPTimeout: v.GetDuration("json-rpc.http-timeout"),
HTTPIdleTimeout: v.GetDuration("json-rpc.http-idle-timeout"),
AllowUnprotectedTxs: v.GetBool("json-rpc.allow-unprotected-txs"),
MaxOpenConnections: v.GetInt("json-rpc.max-open-connections"),
EnableIndexer: v.GetBool("json-rpc.enable-indexer"),
MetricsAddress: v.GetString("json-rpc.metrics-address"),
Expand Down

0 comments on commit de4b07e

Please sign in to comment.