Skip to content

Commit

Permalink
Merge branch 'master' into luca_joss/split-packet-clearing-schedule-f…
Browse files Browse the repository at this point in the history
…rom-packet-worker
  • Loading branch information
ljoss17 committed Aug 6, 2024
2 parents 684eab3 + bd75055 commit 1f1bec1
Show file tree
Hide file tree
Showing 27 changed files with 205 additions and 69 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Update the version of Gaia running the integration tests in the CI from `v17.2.1`
to `v18.1.0`([\#4114](https://github.com/informalsystems/hermes/issues/4114))
10 changes: 5 additions & 5 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
fail-fast: false
matrix:
chain:
- package: gaia17
- package: gaia18
command: gaiad
account_prefix: cosmos
native_token: stake
Expand Down Expand Up @@ -171,10 +171,10 @@ jobs:
fail-fast: false
matrix:
chain:
- package: .#gaia17 .#stride
- package: .#gaia18 .#stride
command: gaiad,strided
account_prefix: cosmos,stride
- package: .#gaia17 .#neutron
- package: .#gaia18 .#neutron
command: gaiad,neutrond
account_prefix: cosmos,neutron
steps:
Expand Down Expand Up @@ -216,7 +216,7 @@ jobs:
fail-fast: false
matrix:
chain:
- package: .#gaia17 .#stride-no-admin
- package: .#gaia18 .#stride-no-admin
command: gaiad,strided
account_prefix: cosmos,stride
steps:
Expand Down Expand Up @@ -257,7 +257,7 @@ jobs:
fail-fast: false
matrix:
chain:
- package: .#celestia .#gaia17
- package: .#celestia .#gaia18
command: celestia-appd,gaiad
account_prefix: celestia,cosmos
native_token: utia,stake
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/misbehaviour.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
fail-fast: false
matrix:
chain:
- package: gaia17
- package: gaia18
command: gaiad
account_prefix: cosmos
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/multi-chains.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
fail-fast: false
matrix:
first-package:
- package: gaia17
- package: gaia18
command: gaiad
account_prefix: cosmos
- package: ibc-go-v7-simapp
Expand Down
30 changes: 15 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ secp256k1 = "0.28.2"
semver = "1.0.21"
serde = "1.0.204"
serde_derive = "1.0.104"
serde_json = "1.0.121"
serde_json = "1.0.122"
serde_yaml = "0.9.34"
serial_test = "3.1.1"
sha2 = "0.10.6"
Expand All @@ -110,7 +110,7 @@ tiny-bip39 = "1.0.0"
tiny-keccak = { version = "2.0.2", default-features = false }
tokio = "1.26.0"
tokio-stream = "0.1.14"
toml = "0.8.16"
toml = "0.8.19"
tonic = "0.12"
tracing = { version = "0.1.36", default-features = false }
tracing-subscriber = "0.3.14"
Expand Down
14 changes: 14 additions & 0 deletions ci/misbehaviour/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,19 @@ gas_price = { price = 0.001, denom = 'stake' }
# Minimum value: 1.0
gas_multiplier = 1.3

# Query the current gas price from the chain instead of using the static `gas_price` from the config.
# Useful for chains which have [EIP-1559][eip]-like dynamic gas price.
#
# At the moment, only chains which support the `osmosis.txfees.v1beta1.Query/GetEipBaseFee`
# query or have enabled Skip's `x/feemarket` module https://github.com/skip-mev/feemarket
# can be used with dynamic gas price enabled.
#
# See this page in the Hermes guide for more information:
# https://hermes.informal.systems/documentation/configuration/dynamic-gas-fees.html
#
# Default: { enabled = false, multiplier = 1.1, max = 0.6 }
dynamic_gas_price = { enabled = true, multiplier = 1.3, max = 5.0 }

# Specify how many IBC messages at most to include in a single transaction.
# Default: 30
max_msg_num = 30
Expand Down Expand Up @@ -314,6 +327,7 @@ default_gas = 100000
max_gas = 400000
gas_price = { price = 0.001, denom = 'stake' }
gas_multiplier = 1.3
dynamic_gas_price = { enabled = true, multiplier = 1.3, max = 5.0 }
max_msg_num = 30
max_tx_size = 2097152
clock_drift = '5s'
Expand Down
18 changes: 16 additions & 2 deletions ci/misbehaviour/config_fork.toml
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,20 @@ gas_price = { price = 0.001, denom = 'stake' }
#
# Default: 1.1, ie. the gas is increased by 10%
# Minimum value: 1.0
gas_multiplier = 1.1
gas_multiplier = 1.3

# Query the current gas price from the chain instead of using the static `gas_price` from the config.
# Useful for chains which have [EIP-1559][eip]-like dynamic gas price.
#
# At the moment, only chains which support the `osmosis.txfees.v1beta1.Query/GetEipBaseFee`
# query or have enabled Skip's `x/feemarket` module https://github.com/skip-mev/feemarket
# can be used with dynamic gas price enabled.
#
# See this page in the Hermes guide for more information:
# https://hermes.informal.systems/documentation/configuration/dynamic-gas-fees.html
#
# Default: { enabled = false, multiplier = 1.1, max = 0.6 }
dynamic_gas_price = { enabled = true, multiplier = 1.3, max = 5.0 }

# Specify how many IBC messages at most to include in a single transaction.
# Default: 30
Expand Down Expand Up @@ -312,7 +325,8 @@ store_prefix = 'ibc'
default_gas = 100000
max_gas = 400000
gas_price = { price = 0.001, denom = 'stake' }
gas_multiplier = 1.1
gas_multiplier = 1.3
dynamic_gas_price = { enabled = true, multiplier = 1.3, max = 5.0 }
max_msg_num = 30
max_tx_size = 2097152
clock_drift = '5s'
Expand Down
2 changes: 1 addition & 1 deletion crates/relayer/src/sdk_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ define_error! {

OutOfGasSimulated
{ code: u32, amount: u64 }
|e| { format_args!("the issue might have been caused by the configured max gas which binds the gas used. Please check the Hermes config.toml and increase the configured `max_gas`. Curerent value is `{}`", e.amount) },
|e| { format_args!("the issue might have been caused by a misconfiguration of Hermes. Please check the Hermes config.toml and increase either the `max_gas` or `gas_multiplier` settings. Simulated gas was: {}", e.amount) },

InsufficientFee
{ code: u32 }
Expand Down
30 changes: 24 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
cometbft
evmos
gaia6-ordered
gaia17
gaia18
ibc-go-v2-simapp
ibc-go-v3-simapp
ibc-go-v4-simapp
Expand Down
2 changes: 1 addition & 1 deletion tools/integration-test/src/mbt/transfer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ impl BinaryChannelTest for IbcTransferMBT {
*target,
*denom,
*amount,
&fee_denom_a.with_amount(1200u64).as_ref(),
&fee_denom_a.with_amount(381000000u64).as_ref(),
)?;
info!("[LocalTransfer] Done");
}
Expand Down
4 changes: 2 additions & 2 deletions tools/integration-test/src/tests/channel_upgrade/ica.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ impl BinaryConnectionTest for ChannelUpgradeICACloseChannel {
&chains.node_b.wallets().user1(),
&ica_address.as_ref(),
&stake_denom.with_amount(ica_fund).as_ref(),
&fee_denom_host.with_amount(1200u64).as_ref(),
&fee_denom_host.with_amount(381000000u64).as_ref(),
)?;

chains.node_b.chain_driver().assert_eventual_wallet_amount(
Expand Down Expand Up @@ -382,7 +382,7 @@ impl BinaryConnectionTest for ChannelUpgradeICAUnordered {
&chains.node_b.wallets().user1(),
&ica_address.as_ref(),
&stake_denom.with_amount(ica_fund).as_ref(),
&fee_denom_host.with_amount(1200u64).as_ref(),
&fee_denom_host.with_amount(381000000u64).as_ref(),
)?;

chains.node_b.chain_driver().assert_eventual_wallet_amount(
Expand Down
2 changes: 1 addition & 1 deletion tools/integration-test/src/tests/clear_packet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ impl BinaryChannelTest for ClearPacketRecoveryTest {
&relayer_wallet_b.as_ref(),
&wallet_b.address(),
&denom_b1.with_amount(100u64).as_ref(),
&fee_denom_b.with_amount(1200u64).as_ref(),
&fee_denom_b.with_amount(381000000u64).as_ref(),
)?;

let amount1 = random_u128_range(1000, 5000);
Expand Down
4 changes: 2 additions & 2 deletions tools/integration-test/src/tests/ica.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ impl BinaryConnectionTest for IcaFilterTestAllow {
&chains.node_b.wallets().user1(),
&ica_address.as_ref(),
&stake_denom.with_amount(ica_fund).as_ref(),
&fee_denom_host.with_amount(1200u64).as_ref(),
&fee_denom_host.with_amount(381000000u64).as_ref(),
)?;

chains.node_b.chain_driver().assert_eventual_wallet_amount(
Expand Down Expand Up @@ -299,7 +299,7 @@ impl BinaryConnectionTest for ICACloseChannelTest {
&chains.node_b.wallets().user1(),
&ica_address.as_ref(),
&stake_denom.with_amount(ica_fund).as_ref(),
&fee_denom_host.with_amount(1200u64).as_ref(),
&fee_denom_host.with_amount(381000000u64).as_ref(),
)?;

chains.node_b.chain_driver().assert_eventual_wallet_amount(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ impl BinaryChannelTest for IcaOrderedChannelTest {
&chains.node_a.wallets().user1(),
&ica_address.as_ref(),
&stake_denom.with_amount(ica_fund).as_ref(),
&fee_denom_a.with_amount(1200u64).as_ref(),
&fee_denom_a.with_amount(381000000u64).as_ref(),
)?;

chains.node_a.chain_driver().assert_eventual_wallet_amount(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ impl BinaryChannelTest for InterchainSecurityIcaTransferTest {
&chains.node_a.wallets().user1(),
&ica_address.as_ref(),
&stake_denom.with_amount(ica_fund).as_ref(),
&fee_denom_a.with_amount(1200u64).as_ref(),
&fee_denom_a.with_amount(381000000u64).as_ref(),
)?;

chains.node_a.chain_driver().assert_eventual_wallet_amount(
Expand Down
Loading

0 comments on commit 1f1bec1

Please sign in to comment.