-
Notifications
You must be signed in to change notification settings - Fork 141
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
Faster MEV tip claiming (v1.17) #568
Conversation
d6a7db3
to
5b8db4e
Compare
let epoch = merkle_trees.epoch; | ||
|
||
let mut futs = vec![]; | ||
futs.push(tokio::spawn(start_mev_claim_process( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a bit confused why spawning futures through join_all? tokio::spawn is non async
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you explain more? this is typical pattern we do throughout our own codebases
) -> solana_rpc_client_api::client_error::Result<Vec<(Signature, Option<TransactionStatus>)>> { | ||
let mut signature_statuses = Vec::new(); | ||
|
||
for signatures_batch in signatures.chunks(100) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
old code would request in parallel, any issues come up because of that?
.collect(); | ||
|
||
datapoint_info!( | ||
"build_transactions_new", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prefix with claim_mev_tips-...
?
solana_metrics::flush(); // sometimes last datapoint doesn't get emitted. this increases likelihood. | ||
for r in results { | ||
r.map_err(|e| ClaimMevError::UncaughtError { e: e.to_string() })??; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could just unwrap these directly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
main returns error, so just propagating that out
ed98d26
to
2806458
Compare
Be more aggressive about sending transactions.
2806458
to
d637c04
Compare
Backport clone derivation (416) (#418) backports #430: update jito-programs (#432) Backport #446 to v1.17 (#448) [JIT-1661] Faster Autosnapshot (#445) v1.17: Backport #449 (#451) backports #419: add upsert to accountoverrides (#421) backport 428 runtime-plugin (#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499) Backport #500 to v1.17 (#507) Backport #520: add priority fees to mev claim (#525) Faster MEV tip claiming (v1.17) (#568)
Backport clone derivation (416) (#418) backports #430: update jito-programs (#432) Backport #446 to v1.17 (#448) [JIT-1661] Faster Autosnapshot (#445) v1.17: Backport #449 (#451) backports #419: add upsert to accountoverrides (#421) backport 428 runtime-plugin (#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499) Backport #500 to v1.17 (#507) Backport #520: add priority fees to mev claim (#525) Faster MEV tip claiming (v1.17) (#568)
Backport clone derivation (416) (#418) backports #430: update jito-programs (#432) Backport #446 to v1.17 (#448) [JIT-1661] Faster Autosnapshot (#445) v1.17: Backport #449 (#451) backports #419: add upsert to accountoverrides (#421) backport 428 runtime-plugin (#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499) Backport #500 to v1.17 (#507) Backport #520: add priority fees to mev claim (#525) Faster MEV tip claiming (v1.17) (#568) Backport Release Fixes (#586)
Backport clone derivation (416) (#418) backports #430: update jito-programs (#432) Backport #446 to v1.17 (#448) [JIT-1661] Faster Autosnapshot (#445) v1.17: Backport #449 (#451) backports #419: add upsert to accountoverrides (#421) backport 428 runtime-plugin (#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499) Backport #500 to v1.17 (#507) Backport #520: add priority fees to mev claim (#525) Faster MEV tip claiming (v1.17) (#568) Backport Release Fixes (#586)
Backport clone derivation (416) (#418) backports #430: update jito-programs (#432) Backport #446 to v1.17 (#448) [JIT-1661] Faster Autosnapshot (#445) v1.17: Backport #449 (#451) backports #419: add upsert to accountoverrides (#421) backport 428 runtime-plugin (#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499) Backport #500 to v1.17 (#507) Backport #520: add priority fees to mev claim (#525) Faster MEV tip claiming (v1.17) (#568) Backport Release Fixes (#586)
Backport clone derivation (416) (#418) backports #430: update jito-programs (#432) Backport #446 to v1.17 (#448) [JIT-1661] Faster Autosnapshot (#445) v1.17: Backport #449 (#451) backports #419: add upsert to accountoverrides (#421) backport 428 runtime-plugin (#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499) Backport #500 to v1.17 (#507) Backport #520: add priority fees to mev claim (#525) Faster MEV tip claiming (v1.17) (#568) Backport Release Fixes (#586)
Backport clone derivation (416) (#418) backports #430: update jito-programs (#432) Backport #446 to v1.17 (#448) [JIT-1661] Faster Autosnapshot (#445) v1.17: Backport #449 (#451) backports #419: add upsert to accountoverrides (#421) backport 428 runtime-plugin (#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499) Backport #500 to v1.17 (#507) Backport #520: add priority fees to mev claim (#525) Faster MEV tip claiming (v1.17) (#568) Backport Release Fixes (#586)
Backport clone derivation (416) (#418) backports #430: update jito-programs (#432) Backport #446 to v1.17 (#448) [JIT-1661] Faster Autosnapshot (#445) v1.17: Backport #449 (#451) backports #419: add upsert to accountoverrides (#421) backport 428 runtime-plugin (#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499) Backport #500 to v1.17 (#507) Backport #520: add priority fees to mev claim (#525) Faster MEV tip claiming (v1.17) (#568) Backport Release Fixes (#586)
Backport clone derivation (416) (#418) backports #430: update jito-programs (#432) Backport #446 to v1.17 (#448) [JIT-1661] Faster Autosnapshot (#445) v1.17: Backport #449 (#451) backports #419: add upsert to accountoverrides (#421) backport 428 runtime-plugin (#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499) Backport #500 to v1.17 (#507) Backport #520: add priority fees to mev claim (#525) Faster MEV tip claiming (v1.17) (#568) Backport Release Fixes (#586)
Backport clone derivation (416) (#418) backports #430: update jito-programs (#432) Backport #446 to v1.17 (#448) [JIT-1661] Faster Autosnapshot (#445) v1.17: Backport #449 (#451) backports #419: add upsert to accountoverrides (#421) backport 428 runtime-plugin (#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499) Backport #500 to v1.17 (#507) Backport #520: add priority fees to mev claim (#525) Faster MEV tip claiming (v1.17) (#568) Backport Release Fixes (#586)
Backport clone derivation (416) (#418) backports #430: update jito-programs (#432) Backport #446 to v1.17 (#448) [JIT-1661] Faster Autosnapshot (#445) v1.17: Backport #449 (#451) backports #419: add upsert to accountoverrides (#421) backport 428 runtime-plugin (#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499) Backport #500 to v1.17 (#507) Backport #520: add priority fees to mev claim (#525) Faster MEV tip claiming (v1.17) (#568)
Backport clone derivation (416) (#418) backports #430: update jito-programs (#432) Backport #446 to v1.17 (#448) [JIT-1661] Faster Autosnapshot (#445) v1.17: Backport #449 (#451) backports #419: add upsert to accountoverrides (#421) backport 428 runtime-plugin (#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499) Backport #500 to v1.17 (#507) Backport #520: add priority fees to mev claim (#525) Faster MEV tip claiming (v1.17) (#568) Backport Release Fixes (#586)
Backport clone derivation (416) (#418) backports #430: update jito-programs (#432) Backport #446 to v1.17 (#448) [JIT-1661] Faster Autosnapshot (#445) v1.17: Backport #449 (#451) backports #419: add upsert to accountoverrides (#421) backport 428 runtime-plugin (#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499) Backport #500 to v1.17 (#507) Backport #520: add priority fees to mev claim (#525) Faster MEV tip claiming (v1.17) (#568) Backport Release Fixes (#586)
Backport clone derivation (416) (#418) backports #430: update jito-programs (#432) Backport #446 to v1.17 (#448) [JIT-1661] Faster Autosnapshot (#445) v1.17: Backport #449 (#451) backports #419: add upsert to accountoverrides (#421) backport 428 runtime-plugin (#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499) Backport #500 to v1.17 (#507) Backport #520: add priority fees to mev claim (#525) Faster MEV tip claiming (v1.17) (#568) Backport Release Fixes (#586)
Backport clone derivation (416) (#418) backports #430: update jito-programs (#432) Backport #446 to v1.17 (#448) [JIT-1661] Faster Autosnapshot (#445) v1.17: Backport #449 (#451) backports #419: add upsert to accountoverrides (#421) backport 428 runtime-plugin (#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499) Backport #500 to v1.17 (#507) Backport #520: add priority fees to mev claim (#525) Faster MEV tip claiming (v1.17) (#568) Backport Release Fixes (#586)
Backport clone derivation (416) (jito-foundation#418) backports jito-foundation#430: update jito-programs (jito-foundation#432) Backport jito-foundation#446 to v1.17 (jito-foundation#448) [JIT-1661] Faster Autosnapshot (jito-foundation#445) v1.17: Backport jito-foundation#449 (jito-foundation#451) backports jito-foundation#419: add upsert to accountoverrides (jito-foundation#421) backport 428 runtime-plugin (jito-foundation#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (jito-foundation#499) Backport jito-foundation#500 to v1.17 (jito-foundation#507) Backport jito-foundation#520: add priority fees to mev claim (jito-foundation#525) Faster MEV tip claiming (v1.17) (jito-foundation#568) Backport Release Fixes (jito-foundation#586)
Backport clone derivation (416) (#418) backports #430: update jito-programs (#432) Backport #446 to v1.17 (#448) [JIT-1661] Faster Autosnapshot (#445) v1.17: Backport #449 (#451) backports #419: add upsert to accountoverrides (#421) backport 428 runtime-plugin (#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499) Backport #500 to v1.17 (#507) Backport #520: add priority fees to mev claim (#525) Faster MEV tip claiming (v1.17) (#568) Backport Release Fixes (#586)
Backport clone derivation (416) (#418) backports #430: update jito-programs (#432) Backport #446 to v1.17 (#448) [JIT-1661] Faster Autosnapshot (#445) v1.17: Backport #449 (#451) backports #419: add upsert to accountoverrides (#421) backport 428 runtime-plugin (#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499) Backport #500 to v1.17 (#507) Backport #520: add priority fees to mev claim (#525) Faster MEV tip claiming (v1.17) (#568) Backport Release Fixes (#586)
Backport clone derivation (416) (#418) backports #430: update jito-programs (#432) Backport #446 to v1.17 (#448) [JIT-1661] Faster Autosnapshot (#445) v1.17: Backport #449 (#451) backports #419: add upsert to accountoverrides (#421) backport 428 runtime-plugin (#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499) Backport #500 to v1.17 (#507) Backport #520: add priority fees to mev claim (#525) Faster MEV tip claiming (v1.17) (#568) Backport Release Fixes (#586)
Backport clone derivation (416) (#418) backports #430: update jito-programs (#432) Backport #446 to v1.17 (#448) [JIT-1661] Faster Autosnapshot (#445) v1.17: Backport #449 (#451) backports #419: add upsert to accountoverrides (#421) backport 428 runtime-plugin (#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499) Backport #500 to v1.17 (#507) Backport #520: add priority fees to mev claim (#525) Faster MEV tip claiming (v1.17) (#568) Backport Release Fixes (#586)
Backport clone derivation (416) (#418) backports #430: update jito-programs (#432) Backport #446 to v1.17 (#448) [JIT-1661] Faster Autosnapshot (#445) v1.17: Backport #449 (#451) backports #419: add upsert to accountoverrides (#421) backport 428 runtime-plugin (#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499) Backport #500 to v1.17 (#507) Backport #520: add priority fees to mev claim (#525) Faster MEV tip claiming (v1.17) (#568) Backport Release Fixes (#586)
Backport clone derivation (416) (#418) backports #430: update jito-programs (#432) Backport #446 to v1.17 (#448) [JIT-1661] Faster Autosnapshot (#445) v1.17: Backport #449 (#451) backports #419: add upsert to accountoverrides (#421) backport 428 runtime-plugin (#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499) Backport #500 to v1.17 (#507) Backport #520: add priority fees to mev claim (#525) Faster MEV tip claiming (v1.17) (#568) Backport Release Fixes (#586)
Backport clone derivation (416) (#418) backports #430: update jito-programs (#432) Backport #446 to v1.17 (#448) [JIT-1661] Faster Autosnapshot (#445) v1.17: Backport #449 (#451) backports #419: add upsert to accountoverrides (#421) backport 428 runtime-plugin (#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499) Backport #500 to v1.17 (#507) Backport #520: add priority fees to mev claim (#525) Faster MEV tip claiming (v1.17) (#568) Backport Release Fixes (#586)
Backport clone derivation (416) (#418) backports #430: update jito-programs (#432) Backport #446 to v1.17 (#448) [JIT-1661] Faster Autosnapshot (#445) v1.17: Backport #449 (#451) backports #419: add upsert to accountoverrides (#421) backport 428 runtime-plugin (#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499) Backport #500 to v1.17 (#507) Backport #520: add priority fees to mev claim (#525) Faster MEV tip claiming (v1.17) (#568) Backport Release Fixes (#586)
Backport clone derivation (416) (#418) backports #430: update jito-programs (#432) Backport #446 to v1.17 (#448) [JIT-1661] Faster Autosnapshot (#445) v1.17: Backport #449 (#451) backports #419: add upsert to accountoverrides (#421) backport 428 runtime-plugin (#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499) Backport #500 to v1.17 (#507) Backport #520: add priority fees to mev claim (#525) Faster MEV tip claiming (v1.17) (#568) Backport Release Fixes (#586)
Backport clone derivation (416) (#418) backports #430: update jito-programs (#432) Backport #446 to v1.17 (#448) [JIT-1661] Faster Autosnapshot (#445) v1.17: Backport #449 (#451) backports #419: add upsert to accountoverrides (#421) backport 428 runtime-plugin (#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499) Backport #500 to v1.17 (#507) Backport #520: add priority fees to mev claim (#525) Faster MEV tip claiming (v1.17) (#568) Backport Release Fixes (#586)
Backport clone derivation (416) (#418) backports #430: update jito-programs (#432) Backport #446 to v1.17 (#448) [JIT-1661] Faster Autosnapshot (#445) v1.17: Backport #449 (#451) backports #419: add upsert to accountoverrides (#421) backport 428 runtime-plugin (#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499) Backport #500 to v1.17 (#507) Backport #520: add priority fees to mev claim (#525) Faster MEV tip claiming (v1.17) (#568) Backport Release Fixes (#586)
Backport clone derivation (416) (#418) backports #430: update jito-programs (#432) Backport #446 to v1.17 (#448) [JIT-1661] Faster Autosnapshot (#445) v1.17: Backport #449 (#451) backports #419: add upsert to accountoverrides (#421) backport 428 runtime-plugin (#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499) Backport #500 to v1.17 (#507) Backport #520: add priority fees to mev claim (#525) Faster MEV tip claiming (v1.17) (#568) Backport Release Fixes (#586)
Backport clone derivation (416) (#418) backports #430: update jito-programs (#432) Backport #446 to v1.17 (#448) [JIT-1661] Faster Autosnapshot (#445) v1.17: Backport #449 (#451) backports #419: add upsert to accountoverrides (#421) backport 428 runtime-plugin (#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499) Backport #500 to v1.17 (#507) Backport #520: add priority fees to mev claim (#525) Faster MEV tip claiming (v1.17) (#568) Backport Release Fixes (#586)
Backport clone derivation (416) (#418) backports #430: update jito-programs (#432) Backport #446 to v1.17 (#448) [JIT-1661] Faster Autosnapshot (#445) v1.17: Backport #449 (#451) backports #419: add upsert to accountoverrides (#421) backport 428 runtime-plugin (#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499) Backport #500 to v1.17 (#507) Backport #520: add priority fees to mev claim (#525) Faster MEV tip claiming (v1.17) (#568) Backport Release Fixes (#586)
Backport clone derivation (416) (#418) backports #430: update jito-programs (#432) Backport #446 to v1.17 (#448) [JIT-1661] Faster Autosnapshot (#445) v1.17: Backport #449 (#451) backports #419: add upsert to accountoverrides (#421) backport 428 runtime-plugin (#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499) Backport #500 to v1.17 (#507) Backport #520: add priority fees to mev claim (#525) Faster MEV tip claiming (v1.17) (#568) Backport Release Fixes (#586) Update release URLs for jito-solana (#589) Backports #595: correctly initialize account overrides (#599) Fix: Ensure set contact info to UDP port instead of QUIC (#601) Buffer bundles that exceed processing time and make the allowed processing time longer (#609)
Backport clone derivation (416) (#418) backports #430: update jito-programs (#432) Backport #446 to v1.17 (#448) [JIT-1661] Faster Autosnapshot (#445) v1.17: Backport #449 (#451) backports #419: add upsert to accountoverrides (#421) backport 428 runtime-plugin (#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499) Backport #500 to v1.17 (#507) Backport #520: add priority fees to mev claim (#525) Faster MEV tip claiming (v1.17) (#568) Backport Release Fixes (#586)
Backport clone derivation (416) (#418) backports #430: update jito-programs (#432) Backport #446 to v1.17 (#448) [JIT-1661] Faster Autosnapshot (#445) v1.17: Backport #449 (#451) backports #419: add upsert to accountoverrides (#421) backport 428 runtime-plugin (#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499) Backport #500 to v1.17 (#507) Backport #520: add priority fees to mev claim (#525) Faster MEV tip claiming (v1.17) (#568) Backport Release Fixes (#586)
Backport clone derivation (416) (#418) backports #430: update jito-programs (#432) Backport #446 to v1.17 (#448) [JIT-1661] Faster Autosnapshot (#445) v1.17: Backport #449 (#451) backports #419: add upsert to accountoverrides (#421) backport 428 runtime-plugin (#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499) Backport #500 to v1.17 (#507) Backport #520: add priority fees to mev claim (#525) Faster MEV tip claiming (v1.17) (#568) Backport Release Fixes (#586) Update release URLs for jito-solana (#589) Backports #595: correctly initialize account overrides (#599) Fix: Ensure set contact info to UDP port instead of QUIC (#601) Buffer bundles that exceed processing time and make the allowed processing time longer (#609)
Backport clone derivation (416) (#418) backports #430: update jito-programs (#432) Backport #446 to v1.17 (#448) [JIT-1661] Faster Autosnapshot (#445) v1.17: Backport #449 (#451) backports #419: add upsert to accountoverrides (#421) backport 428 runtime-plugin (#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499) Backport #500 to v1.17 (#507) Backport #520: add priority fees to mev claim (#525) Faster MEV tip claiming (v1.17) (#568) Backport Release Fixes (#586) Update release URLs for jito-solana (#589) Backports #595: correctly initialize account overrides (#599) Fix: Ensure set contact info to UDP port instead of QUIC (#601) Buffer bundles that exceed processing time and make the allowed processing time longer (#609)
Backport clone derivation (416) (#418) backports #430: update jito-programs (#432) Backport #446 to v1.17 (#448) [JIT-1661] Faster Autosnapshot (#445) v1.17: Backport #449 (#451) backports #419: add upsert to accountoverrides (#421) backport 428 runtime-plugin (#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (#499) Backport #500 to v1.17 (#507) Backport #520: add priority fees to mev claim (#525) Faster MEV tip claiming (v1.17) (#568) Backport Release Fixes (#586) Update release URLs for jito-solana (#589) Backports #595: correctly initialize account overrides (#599) Fix: Ensure set contact info to UDP port instead of QUIC (#601) Buffer bundles that exceed processing time and make the allowed processing time longer (#609)
Problem
MEV tip claiming has been slow and almost taking an epoch.
Summary of Changes
Note: I need to merge this upstream into master, but this makes it easier to work on