Intelligent Batch Packet Broadcasting #3443
Labels
O: new-feature
Objective: cause to add a new feature or support
O: usability
Objective: cause to improve the user experience (UX) and ease using the product
Milestone
Summary
Intelligently compute number of packets to batch broadcast based on
max_gas
.Problem Definition
It looks like when there are a lot of pending packets the relayer will pull and try to broadcast up to 50 packets at a time. However, if the
max_gas
in the config is lower than the gas requirement to broadcast all these packets, the transaction will fail and the relayer doesn’t seem to relay those pending packets, so they’re effectively stuck.Proposal
It’s not the greatest fix to have to adjust the
max_gas
requirement — is there some config for max packets to relay at once? Not sure if, after the batch broadcast fails, hermes then tries to relay the packets 1 by 1? A helpful feature that still does batch broadcasting could calculate the proper number of packets to batch broadcast that’s within themax_gas
config and relay that amount.Acceptance Criteria
Either a feature is implemented to support this, or there is a workaround we don't yet know of!
For Admin Use
The text was updated successfully, but these errors were encountered: