Skip to content

Commit

Permalink
Increase default gas multiplier to 1.1 (#2443)
Browse files Browse the repository at this point in the history
* Increase default gas multiplier to 1.1

* Add changelog entry
  • Loading branch information
romac authored Jul 20, 2022
1 parent c61ae18 commit dbd748a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Increase default value for `gas_multiplier` setting to 1.1
([#2435](https://github.com/informalsystems/ibc-rs/issues/2435))
6 changes: 3 additions & 3 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion relayer/src/chain/cosmos/types/gas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "";

Expand Down

0 comments on commit dbd748a

Please sign in to comment.