Update ore.sh

This commit is contained in:
smeb y 2024-04-04 15:15:01 +08:00 committed by GitHub
parent 5c97d3108e
commit 3c06902a3a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

4
ore.sh
View File

@ -64,7 +64,7 @@ PRIORITY_FEE=${custom_priority_fee:-1}
session_name="ore" session_name="ore"
echo "开始挖矿,会话名称为 $session_name ..." echo "开始挖矿,会话名称为 $session_name ..."
start="while true; do ore --rpc $RPC_URL --keypair root/.config/solana/id.json --priority-fee $PRIORITY_FEE mine --threads $THREADS; echo '进程异常退出,等待重启' >&2; sleep 1; done" start="while true; do ore --rpc $RPC_URL --keypair ~/.config/solana/id.json --priority-fee $PRIORITY_FEE mine --threads $THREADS; echo '进程异常退出,等待重启' >&2; sleep 1; done"
screen -dmS "$session_name" bash -c "$start" screen -dmS "$session_name" bash -c "$start"
echo "挖矿进程已在名为 $session_name 的 screen 会话中后台启动。" echo "挖矿进程已在名为 $session_name 的 screen 会话中后台启动。"
@ -109,7 +109,7 @@ function export_wallet() {
session_name="ore" session_name="ore"
echo "开始挖矿,会话名称为 $session_name ..." echo "开始挖矿,会话名称为 $session_name ..."
start="while true; do ore --rpc $RPC_URL --keypair ~/.config/solana/id.json --priority-fee $PRIORITY_FEE mine --threads $THREADS; echo '进程异常退出,等待重启' >&2; sleep 1; done" start="while true; do ore --rpc $RPC_URL --keypair root/.config/solana/id.json --priority-fee $PRIORITY_FEE mine --threads $THREADS; echo '进程异常退出,等待重启' >&2; sleep 1; done"
screen -dmS "$session_name" bash -c "$start" screen -dmS "$session_name" bash -c "$start"
echo "挖矿进程已在名为 $session_name 的 screen 会话中后台启动。" echo "挖矿进程已在名为 $session_name 的 screen 会话中后台启动。"