Skip to content

chore: upgrade jito-solana deps to 2.3 - remove legacy operator client #171

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

Merged
merged 25 commits into from
Jul 23, 2025

Conversation

gzalz
Copy link
Contributor

@gzalz gzalz commented Jul 15, 2025

Problem

  • jito-solana 2.3 deps introduce breaking changes to the load and process ledger function
  • Now that breaking changes to merkle tree collection generation have been rolled out and stable in production/mainnet the legacy operator code is cruft.

Solution

@gzalz gzalz changed the title chore: Remove legacy operator client chore: upgrade jito-solana deps to 2.3 - remove legacy operator client Jul 15, 2025
@@ -793,7 +794,11 @@ mod tests {
vote_account: &Pubkey,
delegation_amount: u64,
) -> Pubkey {
let minimum_delegation = solana_stake_program::get_minimum_delegation(&bank.feature_set);
let minimum_delegation = solana_stake_program::get_minimum_delegation(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -351,7 +193,10 @@ async fn test_merkle_tree_generation() -> Result<(), Box<dyn std::error::Error>>
const PROTOCOL_FEE_BPS: u64 = 300;
const VALIDATOR_FEE_BPS: u16 = 1000;
const TOTAL_TIPS: u64 = 1_000_000;
let ncn_address = Pubkey::new_unique();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I compared some debug output between master branch and this branch and found the NCN address generated by new_unique are different between these versions of solana-pubkey.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Master:
Protocol fee recipient: De5mc7vkzwhCSWLeesKEJVxTTRyYJGiCjQmA9FnQ6Whd
Protocol fee amount: 30000
Validator fee amount: 100000
NCN address: 1111111QLbz7JHiBTspS962RLKV8GndWFwiEaqKM
Epoch + 1: 10000
TIP_ROUTER_ID: RouterBmuRBkPUbgEDMtdvTZ75GBdSREZR5uGUxxxpb

new_unique on solana-pubkey 2.4.0
Protocol fee recipient: 4x5nU6aZWuoRBcJvjnC3RAUdPeDwngRs8afnn34byK4d
Protocol fee amount: 30000
Validator fee amount: 100000
NCN address: 11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs
Epoch + 1: 10000
TIP_ROUTER_ID: RouterBmuRBkPUbgEDMtdvTZ75GBdSREZR5uGUxxxpb

@gzalz gzalz merged commit 439e086 into master Jul 23, 2025
6 checks passed
@gzalz gzalz deleted the chore/remove-legacy-operator-client branch July 23, 2025 13:37
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