From cc1291f2aee732d4eb36afc86e24434e8e92d2d8 Mon Sep 17 00:00:00 2001 From: xnico31 <54291310+xnico31@users.noreply.github.com> Date: Fri, 10 Jan 2025 16:17:58 +0100 Subject: [PATCH] Update slave.py --- tig-benchmarker/slave.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tig-benchmarker/slave.py b/tig-benchmarker/slave.py index 82c706e..1e63d22 100644 --- a/tig-benchmarker/slave.py +++ b/tig-benchmarker/slave.py @@ -118,8 +118,8 @@ def send_results(session, master_ip, master_port, tig_worker_path, download_wasm with open(f"{output_folder}/result.json") as f: result = json.load(f) - submit_url = f"http://{master_ip}:{master_port}/submit-batch-root/{batch_id}" - logger.info(f"posting root to {submit_url}") + submit_url = f"https://{master_ip}/submit-batch-root/{batch_id}" + logger.info(f"posting root to master") resp = session.post(submit_url, json=result) if resp.status_code == 200: FINISHED_BATCH_IDS[batch_id] = now() @@ -151,8 +151,8 @@ def send_results(session, master_ip, master_port, tig_worker_path, download_wasm for n in batch["sampled_nonces"] ] - submit_url = f"http://{master_ip}:{master_port}/submit-batch-proofs/{batch_id}" - logger.info(f"posting proofs to {submit_url}") + submit_url = f"https://{master_ip}/submit-batch-proofs/{batch_id}" + logger.info(f"posting proofs ") resp = session.post(submit_url, json={"merkle_proofs": proofs_to_submit}) if resp.status_code == 200: FINISHED_BATCH_IDS[batch_id] = now() @@ -193,8 +193,8 @@ def process_batch(session, tig_worker_path, download_wasms_folder, num_workers, def poll_batches(session, master_ip, master_port, output_path): - get_batches_url = f"http://{master_ip}:{master_port}/get-batches" - logger.info(f"fetching batches from {get_batches_url}") + get_batches_url = f"https://{master_ip}/get-batches" + logger.info(f"fetching batches ") resp = session.get(get_batches_url) if resp.status_code == 200: