fix filename

This commit is contained in:
Wisfern
2024-04-07 23:40:08 +08:00
parent 0664b7fc25
commit 4439dbb3b9

14
run.sh
View File

@@ -28,14 +28,14 @@ do
keypair_basename=$(basename "$keypair") keypair_basename=$(basename "$keypair")
screen -dmS mining_$keypair_basename bash -c " screen -dmS mining_$keypair_basename bash -c "
while true; do while true; do
rpcurls=(${RPCURLS_STR//,/ }) rpcurls=(\${RPCURLS_STR//,/ })
index=$((RANDOM % ${#rpcurls[@]})) index=\$((RANDOM % \${#rpcurls[@]}))
rpc=${rpcurls[$index]} rpc=\${rpcurls[\$index]}
echo \"Starting indefinite ore mining iteration with $keypair and rpc $rpc ....\" echo \"Starting indefinite ore mining iteration with $keypair and rpc \$rpc ....\"
nice -n 2 ./ore --rpc $rpc --keypair ./$keypair --priority-fee 5000000 mine --threads 2 nice -n 2 ./ore --rpc \$rpc --keypair $keypair --priority-fee 5000000 mine --threads 2
#ore --rpc $rpc --keypair ./$keypair --priority-fee 1000000 mine --threads 16 & #ore --rpc \$rpc --keypair $keypair --priority-fee 1000000 mine --threads 16 &
#sleep 5 #sleep 5
#ore --rpc $rpc --keypair ./$keypair --priority-fee 1000000 mine --threads 16 & #ore --rpc \$rpc --keypair $keypair --priority-fee 1000000 mine --threads 16 &
#wait #wait
done done
" "