From dbd748aed3cbcedbc7251f3e7aeaa0a82999866d Mon Sep 17 00:00:00 2001 From: Romain Ruetschi Date: Wed, 20 Jul 2022 17:30:46 +0200 Subject: [PATCH] Increase default gas multiplier to 1.1 (#2443) * Increase default gas multiplier to 1.1 * Add changelog entry --- .../improvements/ibc-relayer-cli/2435-gas-multiplier.md | 2 ++ config.toml | 6 +++--- relayer/src/chain/cosmos/types/gas.rs | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 .changelog/unreleased/improvements/ibc-relayer-cli/2435-gas-multiplier.md diff --git a/.changelog/unreleased/improvements/ibc-relayer-cli/2435-gas-multiplier.md b/.changelog/unreleased/improvements/ibc-relayer-cli/2435-gas-multiplier.md new file mode 100644 index 0000000000..e6d01cf5de --- /dev/null +++ b/.changelog/unreleased/improvements/ibc-relayer-cli/2435-gas-multiplier.md @@ -0,0 +1,2 @@ +- Increase default value for `gas_multiplier` setting to 1.1 + ([#2435](https://github.com/informalsystems/ibc-rs/issues/2435)) \ No newline at end of file diff --git a/config.toml b/config.toml index 66be3bef9f..3bb7339e2d 100644 --- a/config.toml +++ b/config.toml @@ -164,9 +164,9 @@ gas_price = { price = 0.001, denom = 'stake' } # is 80_000, then gas used to compute the fee will be adjusted to # 80_000 * 1.1 = 88_000. # -# Default: 1.0, ie. the gas is not increased. +# Default: 1.1, ie. the gas is increased by 10% # Minimum value: 1.0 -gas_multiplier = 1.0 +gas_multiplier = 1.1 # Specify how many IBC messages at most to include in a single transaction. # Default: 30 @@ -248,7 +248,7 @@ store_prefix = 'ibc' default_gas = 100000 max_gas = 400000 gas_price = { price = 0.001, denom = 'stake' } -gas_multiplier = 1.0 +gas_multiplier = 1.1 max_msg_num = 30 max_tx_size = 2097152 clock_drift = '5s' diff --git a/relayer/src/chain/cosmos/types/gas.rs b/relayer/src/chain/cosmos/types/gas.rs index 9821902a38..9f33e9348e 100644 --- a/relayer/src/chain/cosmos/types/gas.rs +++ b/relayer/src/chain/cosmos/types/gas.rs @@ -7,7 +7,7 @@ use crate::config::{ChainConfig, GasPrice}; const DEFAULT_MAX_GAS: u64 = 400_000; /// By default, we do not increase the estimated gas to compute the fee. -const DEFAULT_GAS_MULTIPLIER: f64 = 1.0; +const DEFAULT_GAS_MULTIPLIER: f64 = 1.1; const DEFAULT_FEE_GRANTER: &str = "";