Skip to content

Conversation

guibescos
Copy link
Contributor

@guibescos guibescos commented Aug 11, 2025

Summary

Before this change, the instruction packing algorithm was assuming every transaction had the Jito tip, this was leading to suboptimal packing (in reality only the first transaction of each bundle has the jito tip).

Rather than giving knowledge of jitoBundleSize to addInstruction, I decided to hardcode JITO_BUNDLE_SIZE to the maximum of 5 everywhere (why would anyone want to send bundles smaller than the maximum?). Now addInstruction can know which transactions may have a Jito tip transfer.

Rationale

This allows the scheduler to land 2 updates per transaction like before the last Merkle Proof size increase.

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

I run the scheduler locally with the prod config.

@guibescos guibescos requested a review from a team as a code owner August 11, 2025 19:34
Copy link

vercel bot commented Aug 11, 2025

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

Project Deployment Preview Comments Updated (UTC)
api-reference Ready Preview Comment Aug 12, 2025 11:06am
component-library Ready Preview Comment Aug 12, 2025 11:06am
insights Ready Preview Comment Aug 12, 2025 11:06am
proposals Ready Preview Comment Aug 12, 2025 11:06am
staking Ready Preview Comment Aug 12, 2025 11:06am
3 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
developer-hub ⬜️ Skipped Aug 12, 2025 11:06am
entropy-debugger ⬜️ Skipped Aug 12, 2025 11:06am
entropy-explorer ⬜️ Skipped Aug 12, 2025 11:06am

@vercel vercel bot temporarily deployed to Preview – entropy-debugger August 11, 2025 19:44 Inactive
@vercel vercel bot temporarily deployed to Preview – developer-hub August 11, 2025 19:44 Inactive
@vercel vercel bot temporarily deployed to Preview – insights August 11, 2025 19:44 Inactive
@vercel vercel bot temporarily deployed to Preview – staking August 11, 2025 19:44 Inactive
@vercel vercel bot temporarily deployed to Preview – entropy-explorer August 11, 2025 19:44 Inactive
@vercel vercel bot temporarily deployed to Preview – proposals August 11, 2025 19:44 Inactive
@vercel vercel bot temporarily deployed to Preview – api-reference August 11, 2025 19:44 Inactive
@vercel vercel bot temporarily deployed to Preview – component-library August 11, 2025 19:44 Inactive
Copy link
Contributor

@tejasbadadare tejasbadadare left a comment

Choose a reason for hiding this comment

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

Makes sense! LGTM

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