diff --git a/jito_searcher_client/README.md b/jito_searcher_client/README.md index 943f894..60b9967 100644 --- a/jito_searcher_client/README.md +++ b/jito_searcher_client/README.md @@ -27,6 +27,8 @@ with open(KEYPAIR_PATH) as kp_path: kp = Keypair.from_json(kp_path.read()) client = get_searcher_client(BLOCK_ENGINE_URL, kp) +# This call is not needed since jito-sol is on the majority of validators +# It is useful if jito-sol is on less than 50% of the validators leaders = client.GetConnectedLeaders(ConnectedLeadersRequest()) print(f"{leaders=}") ``` @@ -48,6 +50,8 @@ async def main(): with open(KEYPAIR_PATH) as kp_path: kp = Keypair.from_json(kp_path.read()) client = await get_async_searcher_client(BLOCK_ENGINE_URL, kp) + # This call is not needed since jito-sol is on the majority of validators + # It is useful if jito-sol is on less than 50% of the validators leaders = await client.GetConnectedLeaders(ConnectedLeadersRequest()) print(f"{leaders=}") diff --git a/jito_searcher_client/examples/searcher-cli.py b/jito_searcher_client/examples/searcher-cli.py index 1cc4ed4..41ec078 100644 --- a/jito_searcher_client/examples/searcher-cli.py +++ b/jito_searcher_client/examples/searcher-cli.py @@ -176,6 +176,8 @@ def send_bundle( balance = rpc_client.get_balance(payer_kp.pubkey()).value print(f"payer public key: {payer_kp.pubkey()} {balance=}") + # This check is not needed since jito-sol is on the majority of validators + # It is useful if jito-sol is on less than 50% of the validators is_leader_slot = False print("waiting for jito leader...") while not is_leader_slot: