add proxy

This commit is contained in:
Wisfern
2024-04-06 13:38:33 +08:00
parent d961aa1c0e
commit 36507f115c
3 changed files with 8 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ monitor_value=${1:-0.1}
#export http_proxy="http://10.3.255.132:51837" #export http_proxy="http://10.3.255.132:51837"
#export https_proxy="http://10.3.255.132:51837" #export https_proxy="http://10.3.255.132:51837"
#rpc=https://api.mainnet-beta.solana.com #rpc=https://api.mainnet-beta.solana.com
#rpc=https://crimson-nameless-season.solana-mainnet.quiknode.pro/05858e8f2f620b3705dc985711ee7681a3d00bbd/ #rpc=https://crimson-nameless-season.solana-mainnet.quiknode.pro/05858e8f2f620b3705dc985711ee7681a3d00bbd/
rpc=https://mainnet.helius-rpc.com/?api-key=fa8414c7-043e-4888-922a-344a2d413ec8 rpc=https://mainnet.helius-rpc.com/?api-key=fa8414c7-043e-4888-922a-344a2d413ec8

View File

@@ -1,4 +1,8 @@
#!/bin/bash #!/bin/bash
#export http_proxy="http://10.3.255.132:51837"
#export https_proxy="http://10.3.255.132:51837"
rpc=https://api.mainnet-beta.solana.com rpc=https://api.mainnet-beta.solana.com
total_rewards=0 total_rewards=0
for keyfile in *.json; for keyfile in *.json;

3
run.sh
View File

@@ -16,6 +16,9 @@ do
screen -dmS mining_$keypair bash -c " screen -dmS mining_$keypair bash -c "
while true; do while true; do
if [ -f rpc_config ]; then
source rpc_config
fi
echo \"Starting indefinite ore mining iteration with $keypair....\" echo \"Starting indefinite ore mining iteration with $keypair....\"
nice -n 20 ore --rpc $rpc --keypair ./$keypair --priority-fee 1000 mine --threads 2 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 & #ore --rpc $rpc --keypair ./$keypair --priority-fee 1000000 mine --threads 16 &