From 61891a20280d3d1c2ef9647c63b82a3e4f6c50e8 Mon Sep 17 00:00:00 2001 From: SlavA <78118465+dualsystems@users.noreply.github.com> Date: Thu, 2 Dec 2021 20:21:51 +0200 Subject: [PATCH 1/2] Increase default for max_gas contains --- relayer/src/chain/cosmos.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relayer/src/chain/cosmos.rs b/relayer/src/chain/cosmos.rs index 54e50cad2d..9d8e2ada5d 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; From e30682aa80f101f3bf8d7ab0c8f27a02410dc76d Mon Sep 17 00:00:00 2001 From: Adi Seredinschi Date: Tue, 7 Dec 2021 14:56:36 +0100 Subject: [PATCH 2/2] changelog, consistent defaults for max_gas --- .changelog/unreleased/improvements/ibc-relayer-cli/1636.md | 2 ++ config.toml | 6 +++--- 2 files changed, 5 insertions(+), 3 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