add
This commit is contained in:
@@ -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
2
run.sh
@@ -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 &
|
||||||
|
|||||||
Reference in New Issue
Block a user