From 99b4e40af26365783059b3ae7924eb66fcc432a5 Mon Sep 17 00:00:00 2001 From: xnico31 <54291310+xnico31@users.noreply.github.com> Date: Fri, 10 Jan 2025 17:18:39 +0100 Subject: [PATCH] Add slave binary --- scripts/tig_pool_master.sh | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/scripts/tig_pool_master.sh b/scripts/tig_pool_master.sh index 8f6eb2c..042de57 100755 --- a/scripts/tig_pool_master.sh +++ b/scripts/tig_pool_master.sh @@ -124,20 +124,6 @@ cd $current_path python3 -m venv venv -mkdir -p tig-benchmarker -cd tig-benchmarker -wget https://raw.githubusercontent.com/tig-pool-nk/client/refs/heads/$branch/tig-benchmarker/slave.py -O slave.py -wget https://raw.githubusercontent.com/tig-pool-nk/client/refs/heads/$branch/tig-benchmarker/requirements.txt -O requirements.txt -mkdir -p common -cd common -wget https://raw.githubusercontent.com/tig-pool-nk/tig-monorepo/refs/heads/$branch/tig-benchmarker/common/__init__.py -O __init__.py -wget https://raw.githubusercontent.com/tig-pool-nk/tig-monorepo/refs/heads/$branch/tig-benchmarker/common/merkle_tree.py -O merkle_tree.py -wget https://raw.githubusercontent.com/tig-pool-nk/tig-monorepo/refs/heads/$branch/tig-benchmarker/common/structs.py -O structs.py -wget https://raw.githubusercontent.com/tig-pool-nk/client/refs/heads/$branch/tig-benchmarker/common/utils.py -O utils.py - - - - cd $current_path ./venv/bin/pip3 install -r tig-benchmarker/requirements.txt @@ -152,6 +138,12 @@ if [ $? -ne 0 ]; then exit 1 fi +wget https://github.com/tig-pool-nk/client/raw/refs/heads/$branch/bin/slave -O slave +if [ $? -ne 0 ]; then + echo "Error downloading slave" + exit 1 +fi + wget https://github.com/tig-pool-nk/client/raw/refs/heads/$branch/bin/bench -O bench if [ $? -ne 0 ]; then echo "Error downloading bench"