From 318c9ef7967a07dea0d2fbb53160fad1d234096c Mon Sep 17 00:00:00 2001 From: SlavA <78118465+dualsystems@users.noreply.github.com> Date: Tue, 7 Dec 2021 17:32:50 +0200 Subject: [PATCH] Increase default for max_gas pre defined (#1636) * Increase default for max_gas contains * changelog, consistent defaults for max_gas Co-authored-by: Adi Seredinschi --- .changelog/unreleased/improvements/ibc-relayer-cli/1636.md | 2 ++ config.toml | 6 +++--- relayer/src/chain/cosmos.rs | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 .changelog/unreleased/improvements/ibc-relayer-cli/1636.md diff --git a/.changelog/unreleased/improvements/ibc-relayer-cli/1636.md b/.changelog/unreleased/improvements/ibc-relayer-cli/1636.md new file mode 100644 index 0000000000..5c333db4f0 --- /dev/null +++ b/.changelog/unreleased/improvements/ibc-relayer-cli/1636.md @@ -0,0 +1,2 @@ +- Increase the default for `max_gas` from `300_000` to `400_000` ([#1636](https://github.com/informalsystems/ibc-rs/pull/1636)) + diff --git a/config.toml b/config.toml index 89c4597455..655aec6dd3 100644 --- a/config.toml +++ b/config.toml @@ -155,8 +155,8 @@ store_prefix = 'ibc' default_gas = 100000 # Specify the maximum amount of gas to be used as the gas limit for a transaction. -# Default: 300 000 -max_gas = 300000 +# Default: 400 000 +max_gas = 400000 # Specify the price per gas used of the fee to submit a transaction and # the denomination of the fee. Required @@ -239,7 +239,7 @@ account_prefix = 'cosmos' key_name = 'testkey' store_prefix = 'ibc' default_gas = 100000 -max_gas = 3000000 +max_gas = 400000 gas_price = { price = 0.001, denom = 'stake' } gas_adjustment = 0.1 max_msg_num = 30 diff --git a/relayer/src/chain/cosmos.rs b/relayer/src/chain/cosmos.rs index 3c688d2820..6c22c0f498 100644 --- a/relayer/src/chain/cosmos.rs +++ b/relayer/src/chain/cosmos.rs @@ -98,7 +98,7 @@ mod compatibility; pub mod version; /// Default gas limit when submitting a transaction. -const DEFAULT_MAX_GAS: u64 = 300_000; +const DEFAULT_MAX_GAS: u64 = 400_000; /// Fraction of the estimated gas to add to the estimated gas amount when submitting a transaction. const DEFAULT_GAS_PRICE_ADJUSTMENT: f64 = 0.1;