Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit number of packets per transaction #260

Open
webmaster128 opened this issue Oct 20, 2022 · 1 comment
Open

Limit number of packets per transaction #260

webmaster128 opened this issue Oct 20, 2022 · 1 comment

Comments

@webmaster128
Copy link
Member

If there are many (like 100) packets to be relayed (result of getPendingPackets), they are all sent in one transaction (in receivePackets). The auto-gas simulation then fails once the simulation hits the block gas limit.

@ethanfrey
Copy link
Member

Ah, yes, we definitely need to break them into groups.
Also handle the case when one of them fails or uses too much gas (this will happen more with ICA), such that we don't keep trying it and blocking others.

A lot of these edges to make it robust enough for the wild.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants