From f2fafb95138ef1cd7c7b2d6201402cb0d4a1cc00 Mon Sep 17 00:00:00 2001 From: mdr0id Date: Fri, 9 Aug 2024 09:25:15 -0700 Subject: [PATCH] Update leader slot usage --- cli/README.md | 2 ++ cli/src/main.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/cli/README.md b/cli/README.md index 057fee9..c40c96d 100644 --- a/cli/README.md +++ b/cli/README.md @@ -21,6 +21,8 @@ cargo b --release --bin jito-searcher-cli ### Get the next scheduled leader +(Note: This check is no longer needed since Jito-Sol is on roughly 80% of validators. If this were to drop below 50% this check might be more useful) + Returns the pubkey of the next scheduled leader. ```bash diff --git a/cli/src/main.rs b/cli/src/main.rs index a6d792d..7c920b3 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -261,6 +261,7 @@ where .into_inner(); // wait for jito-solana leader slot + // note: this check is not needed unless jito-solana controls less than 50% of validators let mut is_leader_slot = false; while !is_leader_slot { let next_leader = client