Update ore.sh

This commit is contained in:
smeb y 2024-04-05 15:22:32 +08:00 committed by GitHub
parent c4ea18f0a0
commit 1381cfe2c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

17
ore.sh
View File

@ -285,6 +285,21 @@ do
echo "使用 'screen -r $session_name' 命令重新连接到此会话。" echo "使用 'screen -r $session_name' 命令重新连接到此会话。"
done done
}
function check_multiple() {
# 提示用户同时输入起始和结束编号,用空格分隔
echo -n "请输入起始和结束编号中间用空格分隔比如跑了10个钱包地址输入1 10即可: "
read -a range
# 获取起始和结束编号
start=${range[0]}
end=${range[1]}
# 执行循环
for i in $(seq $start $end); do
ore --rpc 自己的rpc --keypair ~/.config/solana/id$i.json --priority-fee 1 rewards
done
} }
@ -305,6 +320,7 @@ function main_menu() {
echo "5. 领取挖矿收益" echo "5. 领取挖矿收益"
echo "6. 查看节点运行情况" echo "6. 查看节点运行情况"
echo "7. 单机多开钱包需要自行准备json私钥" echo "7. 单机多开钱包需要自行准备json私钥"
echo "8. 单机多开钱包,查看奖励"
read -p "请输入选项1-7: " OPTION read -p "请输入选项1-7: " OPTION
case $OPTION in case $OPTION in
@ -315,6 +331,7 @@ function main_menu() {
5) claim_rewards ;; 5) claim_rewards ;;
6) check_logs ;; 6) check_logs ;;
7) multiple ;; 7) multiple ;;
8) check_multiple ;;
esac esac
echo "按任意键返回主菜单..." echo "按任意键返回主菜单..."
read -n 1 read -n 1