feat!: Add gas limits to queries (backport #16239) (#17324)

Co-authored-by: Dev Ojha <ValarDragon@users.noreply.github.com>
This commit is contained in:
mergify[bot]
2023-08-09 10:22:34 +02:00
committed by GitHub
co-authored by Dev Ojha
parent 6b395f61d9
commit bee95b19b5
10 changed files with 109 additions and 2 deletions
+5 -1
View File
@@ -10,6 +10,10 @@
# specified in this config (e.g. 0.25token1;0.0001token2).
minimum-gas-prices = "0stake"
# The maximum gas a query coming over rest/grpc may consume.
# If this is set to zero, the query can consume an unbounded amount of gas.
query-gas-limit = "0"
# default: the last 362880 states are kept, pruning at 10 block intervals
# nothing: all historic states will be saved, nothing will be deleted (i.e. archiving node)
# everything: 2 latest states will be kept; pruning at 10 block intervals.
@@ -226,4 +230,4 @@ max-txs = "5000"
query_gas_limit = 300000
# This is the number of wasm vm instances we keep cached in memory for speed-up
# Warning: this is currently unstable and may lead to crashes, best to keep for 0 unless testing locally
lru_size = 0
lru_size = 0