Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

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
Contributor

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants