diff --git a/run.sh b/run.sh index 92071a6..dcb0a0c 100644 --- a/run.sh +++ b/run.sh @@ -14,6 +14,9 @@ rpcurls=( "https://api.mainnet-beta.solana.com" ) +rpcurls_str=$(IFS=, ; echo "${rpcurls[*]}") +export RPCURLS_STR=$rpcurls_str + files=$(find . -maxdepth 2 -type f -name "*.json") for keyfile in $files; do do @@ -24,6 +27,7 @@ do screen -dmS mining_$keypair bash -c " while true; do + rpcurls=(${RPCURLS_STR//,/ }) index=$((RANDOM % ${#rpcurls[@]})) rpc=${rpcurls[$index]} echo \"Starting indefinite ore mining iteration with $keypair and rpc $rpc ....\"