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

Optimize aptos contract to verify messages only once #1074

Merged
merged 1 commit into from
Oct 3, 2023
Merged

Conversation

m30m
Copy link
Collaborator

@m30m m30m commented Oct 3, 2023

Move the fee logic to the end of update flow, so we can use the update verification output for calculating how many updates were in the VAAs. This is a profile of what it used to look like before the optimization. As you can see almost all the gas cost is because of doing the wormhole verification logic three times.

txn-eaacdceb-script exec_io

@vercel
Copy link

vercel bot commented Oct 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
example-oracle-amm ⬜️ Ignored (Inspect) Visit Preview Oct 3, 2023 8:58am
xc-admin-frontend ⬜️ Ignored (Inspect) Visit Preview Oct 3, 2023 8:58am

@m30m m30m force-pushed the aptos-optimization branch from 0832c00 to 0d122b1 Compare October 3, 2023 08:58
@m30m m30m merged commit c01a9cf into main Oct 3, 2023
3 checks passed
@m30m m30m deleted the aptos-optimization branch October 3, 2023 09:05
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

Successfully merging this pull request may close these issues.

2 participants