-
Notifications
You must be signed in to change notification settings - Fork 199
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
[JIT-1661] Faster Autosnapshot #406
Conversation
75652a8
to
f6b2cc8
Compare
3e5dcb0
to
fda99db
Compare
args.merkle_trees_path.to_string_lossy(), | ||
String | ||
), | ||
("latency_us", start.elapsed().as_micros(), i64), |
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.
nit: elapsed_us
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.
zano usually suggests latency_us
, hence been using that
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.
latency seems like wrong word here, but just a nit
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.
i've evolved from using latency for non-networking related measurements, that version of me is no longer present :)
args.merkle_trees_path.to_string_lossy(), | ||
String | ||
), | ||
("latency_us", start.elapsed().as_micros(), i64), |
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.
nit: elapsed_us
tip-distributor/src/lib.rs
Outdated
.expect("fetch latest blockhash"), | ||
)); | ||
let mut rng = rand::thread_rng(); | ||
transactions.shuffle(&mut rng); // shuffle to avoid sending same txns as other claim-tip processes |
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.
comment somewhat misleading, will still send the same? and have potential for failed txs?
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.
shuffle is mainly if we run both warehouse nodes, would make them less likely to race for the same txns.
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.
Still has potential for failed txns, but we refetch all accounts to see if they're claimed every couple mins to avoid duplicate work.
mut txn: Transaction, | ||
) -> (Transaction, solana_rpc_client_api::client_error::Result<()>) { | ||
txn.sign(&[signer], blockhash); // just in time signing | ||
let res = match rpc_client.send_and_confirm_transaction(&txn).await { |
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.
how long does this wait to confirm?
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.
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.
it looks like max amount of time would be blockhash expiry?
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.
yea looks like that
pub async fn sign_and_send_transactions_with_retries_multi_rpc( | ||
signer: &Arc<Keypair>, | ||
blockhash_rpc_client: &Arc<RpcClient>, | ||
rpc_clients: &Arc<Vec<Arc<RpcClient>>>, |
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.
should make sure we used confirmed or finalized here. finalized will make it much slow though
if we used processed, might end up false confirming a block that gets forked out
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.
mut txn: Transaction, | ||
) -> (Transaction, solana_rpc_client_api::client_error::Result<()>) { | ||
txn.sign(&[signer], blockhash); // just in time signing | ||
let res = match rpc_client.send_and_confirm_transaction(&txn).await { |
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.
it looks like max amount of time would be blockhash expiry?
4696aa6
to
70c3f57
Compare
dd3cf7e
to
2a4b508
Compare
@@ -46,7 +51,3 @@ path = "src/bin/merkle-root-uploader.rs" | |||
[[bin]] | |||
name = "solana-claim-mev-tips" | |||
path = "src/bin/claim-mev-tips.rs" | |||
|
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.
Why remove this?
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.
merged into same binary
Use cluster info functions for tpu (#345) (#347) Use git rev-parse for git sha Remove blacklisted tx from message_hash_to_transaction (Backport #374) (#376) Updates scripts for easy local setup. (#383) Backports sim_bundle improvements (#407) backports clone derivation 416 (#417) Backport #419: add upsert to AccountOverrides (#420) backports #430 v1.16: update jito-programs sha (#431) [JIT-1661] Faster Autosnapshot (#406) Fix Buildkite warnings (#437) Backport #446 to v1.16 (#447) backport 428, runtime plugin (#429) v1.16: Backport #449 (#450)
Use cluster info functions for tpu (#345) (#347) Use git rev-parse for git sha Remove blacklisted tx from message_hash_to_transaction (Backport #374) (#376) Updates scripts for easy local setup. (#383) Backports sim_bundle improvements (#407) backports clone derivation 416 (#417) Backport #419: add upsert to AccountOverrides (#420) backports #430 v1.16: update jito-programs sha (#431) [JIT-1661] Faster Autosnapshot (#406) Fix Buildkite warnings (#437) Backport #446 to v1.16 (#447) backport 428, runtime plugin (#429) v1.16: Backport #449 (#450)
Use cluster info functions for tpu (#345) (#347) Use git rev-parse for git sha Remove blacklisted tx from message_hash_to_transaction (Backport #374) (#376) Updates scripts for easy local setup. (#383) Backports sim_bundle improvements (#407) backports clone derivation 416 (#417) Backport #419: add upsert to AccountOverrides (#420) backports #430 v1.16: update jito-programs sha (#431) [JIT-1661] Faster Autosnapshot (#406) Fix Buildkite warnings (#437) Backport #446 to v1.16 (#447) backport 428, runtime plugin (#429) v1.16: Backport #449 (#450)
Use cluster info functions for tpu (#345) (#347) Use git rev-parse for git sha Remove blacklisted tx from message_hash_to_transaction (Backport #374) (#376) Updates scripts for easy local setup. (#383) Backports sim_bundle improvements (#407) backports clone derivation 416 (#417) Backport #419: add upsert to AccountOverrides (#420) backports #430 v1.16: update jito-programs sha (#431) [JIT-1661] Faster Autosnapshot (#406) Fix Buildkite warnings (#437) Backport #446 to v1.16 (#447) backport 428, runtime plugin (#429) v1.16: Backport #449 (#450)
Use cluster info functions for tpu (#345) (#347) Use git rev-parse for git sha Remove blacklisted tx from message_hash_to_transaction (Backport #374) (#376) Updates scripts for easy local setup. (#383) Backports sim_bundle improvements (#407) backports clone derivation 416 (#417) Backport #419: add upsert to AccountOverrides (#420) backports #430 v1.16: update jito-programs sha (#431) [JIT-1661] Faster Autosnapshot (#406) Fix Buildkite warnings (#437) Backport #446 to v1.16 (#447) backport 428, runtime plugin (#429) v1.16: Backport #449 (#450)
Use cluster info functions for tpu (#345) (#347) Use git rev-parse for git sha Remove blacklisted tx from message_hash_to_transaction (Backport #374) (#376) Updates scripts for easy local setup. (#383) Backports sim_bundle improvements (#407) backports clone derivation 416 (#417) Backport #419: add upsert to AccountOverrides (#420) backports #430 v1.16: update jito-programs sha (#431) [JIT-1661] Faster Autosnapshot (#406) Fix Buildkite warnings (#437) Backport #446 to v1.16 (#447) backport 428, runtime plugin (#429) v1.16: Backport #449 (#450)
Use cluster info functions for tpu (#345) (#347) Use git rev-parse for git sha Remove blacklisted tx from message_hash_to_transaction (Backport #374) (#376) Updates scripts for easy local setup. (#383) Backports sim_bundle improvements (#407) backports clone derivation 416 (#417) Backport #419: add upsert to AccountOverrides (#420) backports #430 v1.16: update jito-programs sha (#431) [JIT-1661] Faster Autosnapshot (#406) Fix Buildkite warnings (#437) Backport #446 to v1.16 (#447) backport 428, runtime plugin (#429) v1.16: Backport #449 (#450)
Use cluster info functions for tpu (#345) (#347) Use git rev-parse for git sha Remove blacklisted tx from message_hash_to_transaction (Backport #374) (#376) Updates scripts for easy local setup. (#383) Backports sim_bundle improvements (#407) backports clone derivation 416 (#417) Backport #419: add upsert to AccountOverrides (#420) backports #430 v1.16: update jito-programs sha (#431) [JIT-1661] Faster Autosnapshot (#406) Fix Buildkite warnings (#437) Backport #446 to v1.16 (#447) backport 428, runtime plugin (#429) v1.16: Backport #449 (#450)
Use cluster info functions for tpu (#345) (#347) Use git rev-parse for git sha Remove blacklisted tx from message_hash_to_transaction (Backport #374) (#376) Updates scripts for easy local setup. (#383) Backports sim_bundle improvements (#407) backports clone derivation 416 (#417) Backport #419: add upsert to AccountOverrides (#420) backports #430 v1.16: update jito-programs sha (#431) [JIT-1661] Faster Autosnapshot (#406) Fix Buildkite warnings (#437) Backport #446 to v1.16 (#447) backport 428, runtime plugin (#429) v1.16: Backport #449 (#450) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.16) (#498) Backport #500 to v1.16 (#506)
Use cluster info functions for tpu (#345) (#347) Use git rev-parse for git sha Remove blacklisted tx from message_hash_to_transaction (Backport #374) (#376) Updates scripts for easy local setup. (#383) Backports sim_bundle improvements (#407) backports clone derivation 416 (#417) Backport #419: add upsert to AccountOverrides (#420) backports #430 v1.16: update jito-programs sha (#431) [JIT-1661] Faster Autosnapshot (#406) Fix Buildkite warnings (#437) Backport #446 to v1.16 (#447) backport 428, runtime plugin (#429) v1.16: Backport #449 (#450) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.16) (#498) Backport #500 to v1.16 (#506)
Use cluster info functions for tpu (#345) (#347) Use git rev-parse for git sha Remove blacklisted tx from message_hash_to_transaction (Backport #374) (#376) Updates scripts for easy local setup. (#383) Backports sim_bundle improvements (#407) backports clone derivation 416 (#417) Backport #419: add upsert to AccountOverrides (#420) backports #430 v1.16: update jito-programs sha (#431) [JIT-1661] Faster Autosnapshot (#406) Fix Buildkite warnings (#437) Backport #446 to v1.16 (#447) backport 428, runtime plugin (#429) v1.16: Backport #449 (#450) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.16) (#498) Backport #500 to v1.16 (#506)
Use cluster info functions for tpu (#345) (#347) Use git rev-parse for git sha Remove blacklisted tx from message_hash_to_transaction (Backport #374) (#376) Updates scripts for easy local setup. (#383) Backports sim_bundle improvements (#407) backports clone derivation 416 (#417) Backport #419: add upsert to AccountOverrides (#420) backports #430 v1.16: update jito-programs sha (#431) [JIT-1661] Faster Autosnapshot (#406) Fix Buildkite warnings (#437) Backport #446 to v1.16 (#447) backport 428, runtime plugin (#429) v1.16: Backport #449 (#450) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.16) (#498) Backport #500 to v1.16 (#506) backports #520: add priority fees to mev claim (#524) Backport #548 (#549)
Use cluster info functions for tpu (#345) (#347) Use git rev-parse for git sha Remove blacklisted tx from message_hash_to_transaction (Backport #374) (#376) Updates scripts for easy local setup. (#383) Backports sim_bundle improvements (#407) backports clone derivation 416 (#417) Backport #419: add upsert to AccountOverrides (#420) backports #430 v1.16: update jito-programs sha (#431) [JIT-1661] Faster Autosnapshot (#406) Fix Buildkite warnings (#437) Backport #446 to v1.16 (#447) backport 428, runtime plugin (#429) v1.16: Backport #449 (#450) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.16) (#498) Backport #500 to v1.16 (#506) backports #520: add priority fees to mev claim (#524) Backport #548 (#549)
Use cluster info functions for tpu (#345) (#347) Use git rev-parse for git sha Remove blacklisted tx from message_hash_to_transaction (Backport #374) (#376) Updates scripts for easy local setup. (#383) Backports sim_bundle improvements (#407) backports clone derivation 416 (#417) Backport #419: add upsert to AccountOverrides (#420) backports #430 v1.16: update jito-programs sha (#431) [JIT-1661] Faster Autosnapshot (#406) Fix Buildkite warnings (#437) Backport #446 to v1.16 (#447) backport 428, runtime plugin (#429) v1.16: Backport #449 (#450) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.16) (#498) Backport #500 to v1.16 (#506) backports #520: add priority fees to mev claim (#524) Backport #548 (#549)
Notes: