Bladeren bron

update leader docs (#12)

Marshall 1 jaar geleden
bovenliggende
commit
5a9862f008
2 gewijzigde bestanden met toevoegingen van 6 en 0 verwijderingen
  1. 4 0
      jito_searcher_client/README.md
  2. 2 0
      jito_searcher_client/examples/searcher-cli.py

+ 4 - 0
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=}")
 

+ 2 - 0
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: