add some account

This commit is contained in:
wisfern
2024-04-06 12:30:48 +08:00
parent f9981851bd
commit 962f727030
21 changed files with 110 additions and 0 deletions

28
run.sh Normal file
View File

@@ -0,0 +1,28 @@
#!/bin/bash
#rpc=https://go.getblock.io/61bed5f600ab47ff903baacab0e37c36
#rpc=https://api.mainnet-beta.solana.com
rpc=https://crimson-nameless-season.solana-mainnet.quiknode.pro/05858e8f2f620b3705dc985711ee7681a3d00bbd/
# 定义RPC URL数组
rpcurls=($rpc)
for keypair in *.json;
do
# 随机选择一个RPC URL
index=$((RANDOM % ${#rpcurls[@]}))
rpcurl=${rpcurls[$index]}
echo "选中rpc=$rpcurl"
screen -dmS mining_$keypair bash -c "
while true; do
echo \"Starting indefinite ore mining iteration with $keypair....\"
nice -n 20 ore --rpc $rpc --keypair ./$keypair --priority-fee 1000 mine --threads 2
#ore --rpc $rpc --keypair ./$keypair --priority-fee 1000000 mine --threads 16 &
#sleep 5
#ore --rpc $rpc --keypair ./$keypair --priority-fee 1000000 mine --threads 16 &
#wait
done
"
# exit
done