Crypto-Noso/arm64/noso-go.sh
2021-12-11 17:34:32 +01:00

33 lines
618 B
Bash
Executable File

#!/usr/bin/env bash
#POOL="devnoso"
POOL="leviable"
WALLET="NrUtLqQ2PFeYR9cPXstUwp5qejPoFz"
CPU=8
# #########################################
#
# No user editable code below
#
# #########################################
for wallet in ${WALLET:?Variable not set or is empty}; do
wallets+=" --wallet $wallet"
done
while true; do
./noso-go mine pool \
"${POOL:?Variable not set or is empty}" \
$wallets \
--cpu ${CPU:?Variable not set or is empty} \
--exit-on-retry \
--random-wallet
exit_code=$?
if [ "$exit_code" != "1" ]; then
continue
else
exit $exit_code
fi
done