You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It becomes an issue with chains like osmosis where Tx-es with size bigger than some threshold may be priced differently resulting in Tx simulation failure and no recovery (see #2422, the threshold is exceeded with 3 msgs, one update client and two packet messages)
In addition, the actual Tx will be slightly bigger due to extra auth encoding and we should do something about it.
Version
all recent
Steps to Reproduce
The code is obviously wrong but:
add assert!(current_size < max_tx_size); after L154
configure hermes with:
max_msg_num = 50
max_tx_size = 15000
send 100 packets
Acceptance Criteria
For Admin Use
Not duplicate issue
Appropriate labels applied
Appropriate milestone (priority) applied
Appropriate contributors tagged
Contributor assigned/self-assigned
The text was updated successfully, but these errors were encountered:
Since batch_messages is now a pure function, we should write some unit tests that test the behavior of batch_messages directly without having to run the full integration test.
Since batch_messages is now a pure function, we should write some unit tests that test the behavior of batch_messages directly without having to run the full integration test.
Thanks for reminding, it's good unit testable function indeed.
Summary of Bug
When we batch messages in a Tx we may exceed the
max_tx_size
ifmax_msg_num
is not hit. The problem code is here:https://github.com/informalsystems/ibc-rs/blob/1d188187721051a34d20841c0146b8c16b5b413b/relayer/src/chain/cosmos/batch.rs#L152-L157
We keep in the batch the msg that caused the crossing of
max_tx_size
.It becomes an issue with chains like osmosis where Tx-es with size bigger than some threshold may be priced differently resulting in Tx simulation failure and no recovery (see #2422, the threshold is exceeded with 3 msgs, one update client and two packet messages)
In addition, the actual Tx will be slightly bigger due to extra auth encoding and we should do something about it.
Version
all recent
Steps to Reproduce
The code is obviously wrong but:
assert!(current_size < max_tx_size);
after L154Acceptance Criteria
For Admin Use
The text was updated successfully, but these errors were encountered: