Add slave binary

This commit is contained in:
xnico31 2025-01-10 17:18:39 +01:00
parent 6653b8ae6e
commit 99b4e40af2

View File

@ -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"