This commit is contained in:
wisfern
2024-04-08 00:20:32 +08:00
parent 4439dbb3b9
commit b5f321a3f1
2 changed files with 1 additions and 4 deletions

View File

@@ -8,9 +8,6 @@ total_rewards=0
files=$(find . -maxdepth 2 -type f -name "*.json") files=$(find . -maxdepth 2 -type f -name "*.json")
for keyfile in $files; for keyfile in $files;
do do
if [ -f ./rpc_config ]; then
source ./rpc_config
fi
rewards=$(ore --rpc $rpc --keypair $keyfile rewards 2>/dev/null | sed 's/ ORE//') rewards=$(ore --rpc $rpc --keypair $keyfile rewards 2>/dev/null | sed 's/ ORE//')
total_rewards=$(echo "$total_rewards + $rewards" | bc) total_rewards=$(echo "$total_rewards + $rewards" | bc)
echo $keyfile $rewards ORE echo $keyfile $rewards ORE

2
run.sh
View File

@@ -32,7 +32,7 @@ do
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 1000000 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 &