From 3c06902a3ade53b276f9d9f86897ccc89d468f6f Mon Sep 17 00:00:00 2001 From: smeb y <48400087+a3165458@users.noreply.github.com> Date: Thu, 4 Apr 2024 15:15:01 +0800 Subject: [PATCH] Update ore.sh --- ore.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ore.sh b/ore.sh index 4daa416..fa03594 100644 --- a/ore.sh +++ b/ore.sh @@ -64,7 +64,7 @@ PRIORITY_FEE=${custom_priority_fee:-1} session_name="ore" 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" echo "挖矿进程已在名为 $session_name 的 screen 会话中后台启动。" @@ -109,7 +109,7 @@ function export_wallet() { session_name="ore" 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" echo "挖矿进程已在名为 $session_name 的 screen 会话中后台启动。"