Skip to content

Commit

Permalink
Increase default for max_gas pre defined (informalsystems#1636)
Browse files Browse the repository at this point in the history
* Increase default for max_gas contains

* changelog, consistent defaults for max_gas

Co-authored-by: Adi Seredinschi <adi@informal.systems>
  • Loading branch information
SlavA and adizere committed Dec 7, 2021
1 parent 81c2e0a commit 318c9ef
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .changelog/unreleased/improvements/ibc-relayer-cli/1636.md
Original file line number Diff line number Diff line change
@@ -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))

6 changes: 3 additions & 3 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion relayer/src/chain/cosmos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 318c9ef

Please sign in to comment.