Skip to content

Commit

Permalink
Merge branch 'soares/direct-send-tx' into soares/ics29-fee-middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
soareschen committed May 11, 2022
2 parents 00089ec + 74d614c commit bb15577
Show file tree
Hide file tree
Showing 10 changed files with 281 additions and 122 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Fix a bug where connection and channel handshakes would fail with non-batching transactions
([#1971](https://github.com/informalsystems/ibc-rs/issues/1971))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Ensure `max_msg_num` is between 1 and 100 with a default of 30
([#1971](https://github.com/informalsystems/ibc-rs/issues/1971))
2 changes: 1 addition & 1 deletion relayer/src/chain/cosmos/batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ fn batch_messages(
max_tx_size: MaxTxSize,
messages: Vec<Any>,
) -> Result<Vec<Vec<Any>>, Error> {
let max_message_count = max_msg_num.0;
let max_message_count = max_msg_num.to_usize();
let max_tx_size = max_tx_size.into();

let mut batches = vec![];
Expand Down
2 changes: 1 addition & 1 deletion relayer/src/chain/cosmos/estimate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ async fn estimate_gas_with_tx(
}

// If there is a chance that the tx will be accepted once actually submitted, we fall
// back on the max gas and will attempt to send it anyway.
// back on the default gas and will attempt to send it anyway.
// See `can_recover_from_simulation_failure` for more info.
Err(e) if can_recover_from_simulation_failure(&e) => {
warn!(
Expand Down
1 change: 0 additions & 1 deletion relayer/src/config/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ define_error! {
Encode
[ TraceError<toml::ser::Error> ]
|_| { "invalid configuration" },

}
}
Loading

0 comments on commit bb15577

Please sign in to comment.