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

feat(price_pusher): make jito bundles independent #1565

Merged
merged 5 commits into from
May 14, 2024
Merged

Conversation

guibescos
Copy link
Contributor

@guibescos guibescos commented May 12, 2024

When updating price feed accounts on Solana, previously we would first send a Jito bundle that posts the VAA (and the first 7 price updates), then wait for that bundle to land and then send bundles that reuse the VAA that got posted in the first bundle.

I think a more robust and simple behavior is making every bundle independent from the others. Each bundle posts it's own VAA and 7 price updates based on that VAA, then closes the VAA.

I am hoping this change will reduce latency and make the service more robust (since it just needs to "spray and pray" bundles). It will also make it easier to reason at the behavior when we increase the frequency of updates.

Copy link

vercel bot commented May 12, 2024

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 May 13, 2024 7:22pm
xc-admin-frontend ⬜️ Ignored (Inspect) Visit Preview May 13, 2024 7:22pm

);
for (let i = 0; i < priceIds.length; i += UPDATES_PER_JITO_BUNDLE) {
const transactionBuilder = this.pythSolanaReceiver.newTransactionBuilder({
closeUpdateAccounts: true,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now we can close VAA accounts immediately since the VAA account is not reused in other bundles.

@guibescos guibescos changed the title feat(price_pusher): make jito bundles atomic feat(price_pusher): make jito bundles independent May 12, 2024
@guibescos guibescos force-pushed the pusher-improvement branch from edabc4c to 8bb7b28 Compare May 13, 2024 18:58
@guibescos guibescos merged commit 641a4bd into main May 14, 2024
5 checks passed
@guibescos guibescos deleted the pusher-improvement branch May 14, 2024 12:43
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