done
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,6 +3,7 @@
|
|||||||
__pycache__/
|
__pycache__/
|
||||||
*.py[cod]
|
*.py[cod]
|
||||||
*$py.class
|
*$py.class
|
||||||
|
ore
|
||||||
|
|
||||||
# C extensions
|
# C extensions
|
||||||
*.so
|
*.so
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
[11,241,114,11,246,31,108,58,191,4,99,80,68,246,237,98,41,174,173,72,96,94,104,116,98,35,115,223,59,33,104,4,101,89,113,240,33,60,90,59,180,98,146,230,183,61,118,205,71,20,235,139,42,46,11,14,180,92,24,9,14,35,190,198]
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
[65,72,119,224,122,152,117,161,131,185,105,159,133,199,154,49,199,249,252,190,204,28,12,25,52,39,70,178,105,4,31,48,146,58,253,62,246,98,62,75,82,66,189,10,234,161,43,222,35,41,42,98,48,217,155,168,168,168,21,248,84,71,207,217]
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
[68,94,79,140,74,211,111,140,15,15,117,254,166,19,247,127,149,25,195,205,157,125,80,27,55,82,83,160,187,215,221,188,233,255,228,80,27,170,173,105,10,175,215,202,199,217,56,250,234,207,91,205,249,34,228,17,159,39,141,28,192,151,13,46]
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
[178,251,15,174,167,87,19,150,117,213,1,111,20,49,60,88,57,23,52,134,64,172,30,2,239,132,73,34,81,182,42,176,4,109,205,74,90,197,132,102,5,138,248,160,183,93,20,214,100,71,223,252,145,221,5,96,202,43,145,68,218,83,37,155]
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
[104,99,129,146,127,161,141,187,224,126,166,117,204,174,34,177,207,161,233,71,86,195,126,127,22,84,104,61,73,221,249,245,176,112,61,142,80,169,97,211,117,64,34,40,177,19,187,228,202,107,25,116,115,63,39,166,4,186,182,80,142,175,85,2]
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
[244,246,109,61,93,43,0,4,3,42,20,169,235,207,200,193,108,186,51,244,117,228,238,138,104,178,244,13,63,212,18,50,109,176,209,114,78,42,136,155,175,214,111,253,61,198,209,76,97,119,26,81,85,22,1,87,218,123,54,191,80,215,217,200]
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
[90,210,228,189,210,65,166,140,242,77,163,60,130,94,81,154,166,71,177,87,24,130,246,167,185,4,225,66,138,54,154,241,230,161,54,247,95,235,91,208,63,156,239,54,73,231,140,192,63,72,173,83,223,101,246,158,136,14,137,133,108,228,227,5]
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
[225,254,64,191,114,188,90,34,176,25,134,53,219,79,35,250,166,85,82,108,18,203,147,236,12,53,226,187,179,102,129,151,155,126,58,41,212,3,20,93,199,254,0,86,125,18,207,240,42,80,112,177,6,246,35,37,163,13,46,131,134,12,37,75]
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
[21,122,247,0,142,172,151,118,3,165,80,150,157,148,34,231,155,113,253,130,225,213,140,130,212,227,110,251,93,217,228,7,106,111,7,76,226,69,192,215,177,194,251,97,228,82,115,161,199,26,3,96,46,45,203,70,29,200,75,13,29,97,180,243]
|
|
||||||
4
claim.sh
4
claim.sh
@@ -34,7 +34,7 @@ for keyfile in $files; do
|
|||||||
# 随机选择一个RPC URL
|
# 随机选择一个RPC URL
|
||||||
index=$((RANDOM % ${#rpcurls[@]}))
|
index=$((RANDOM % ${#rpcurls[@]}))
|
||||||
rpc=${rpcurls[$index]}
|
rpc=${rpcurls[$index]}
|
||||||
echo "选中rpc=$rpc"
|
#echo "选中rpc=$rpc"
|
||||||
|
|
||||||
echo $keyfile
|
echo $keyfile
|
||||||
rewards=$(ore --rpc $fetch_balance_rpc --keypair "$keyfile" rewards | sed 's/ ORE//')
|
rewards=$(ore --rpc $fetch_balance_rpc --keypair "$keyfile" rewards | sed 's/ ORE//')
|
||||||
@@ -49,7 +49,7 @@ for keyfile in $files; do
|
|||||||
echo "claim reward $keyfile"
|
echo "claim reward $keyfile"
|
||||||
echo "================================================"
|
echo "================================================"
|
||||||
echo "Rewards ($rewards) is greater than monitor value ($monitor_value). Claiming rewards..."
|
echo "Rewards ($rewards) is greater than monitor value ($monitor_value). Claiming rewards..."
|
||||||
./ore --rpc $rpc --keypair $keyfile --priority-fee 10000 claim $rewards $toaddress
|
./ore --rpc $rpc --keypair $keyfile --priority-fee 100000000 claim $rewards $toaddress
|
||||||
else
|
else
|
||||||
echo "Rewards ($rewards) is less than or equal to monitor value ($monitor_value). No action needed."
|
echo "Rewards ($rewards) is less than or equal to monitor value ($monitor_value). No action needed."
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
while true;
|
while true;
|
||||||
do
|
do
|
||||||
bash claim.sh 0.0001
|
bash claim.sh 0.001
|
||||||
sleep 5
|
sleep 30
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -8,7 +8,9 @@ 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
|
||||||
source ./rpc_config
|
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
@@ -25,7 +25,7 @@ do
|
|||||||
source rpc_config
|
source rpc_config
|
||||||
fi
|
fi
|
||||||
echo \"Starting indefinite ore mining iteration with $keypair....\"
|
echo \"Starting indefinite ore mining iteration with $keypair....\"
|
||||||
nice -n 2 ./ore --rpc $rpc --keypair ./$keypair --priority-fee 500000 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 &
|
||||||
|
|||||||
Reference in New Issue
Block a user