-
Notifications
You must be signed in to change notification settings - Fork 50
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
Implement gas metering abstraction #79
Comments
We could also leave this up to the |
This is an interesting space. Is there any resource we can look at in order to understand how this has been done by others? |
Thought about this a bit more and we can definitely implement this tx queue in the relayer core rather than for every chain. We'll just introduce a new api to chain trait Chain {
async fn block_max_execution_weight(&self) -> u64;
async fn estimate_execution_weight(&self, msgs: Vec<Any>) -> u64;
... |
I unfortunately don't have this sir, but I don't think that the implementation details of a gas aware tx queue are so complex they require a reference. |
can we leverage some SDKs/RPC endpoints? |
Yes this issue is based on the idea that most blockchains have an api for estimating gas costs. |
Perfect. Thanks |
closed in #81 |
So currently we naively relay all packets to the counter party chain. In production its more likely that these batches will be too expensive (probably even more than is allowed into a block) to relay all at once. So we probably want to first estimate the gas cost somehow then split them up into batches based on this estimate.
The text was updated successfully, but these errors were encountered: