1 Star 7 Fork 6

karry_ii / filecoin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
auto_pledge_sector.sh 1.19 KB
一键复制 编辑 原始数据 按行查看 历史
NewMai 提交于 2020-10-20 10:09 . 更新自动押扇区的脚本。
#########################################################################
# File Name: auto_pledge_sector.sh
# Author: tears
# mail: tears@tears.com
# Created Time: Wed 25 Mar 2020 06:47:41 PM CST
#########################################################################
#!/bin/bash
lotus_path="/home/tears/filecoin/official/lotus"
# Colorefull print
function green_print()
{
local text=$@
echo ""
echo -e "\033[1m\033[32m[$text]\033[0m" # 绿色加粗, 并复原
# echo ""
}
function blue_print()
{
local text=$@
# echo ""
echo -e "\033[1m\033[36m[$text]\033[0m" # 蓝色加粗, 并复原
# echo ""
}
function blue_print2()
{
local text=$@
# echo ""
echo -e "\033[36m[$text]\033[0m" # 蓝色, 并复原
# echo ""
}
green_print "Pledge sectors process starting..."
idx=1
tm=15 # 15 min for each round
while ((idx<=2000))
do
t=$(date +%Y_%m_%d_%H_%M)
blue_print "[${t}]:"
blue_print2 "[${idx}] pledge a sector!"
blue_print "${lotus_path}/lotus-miner sectors pledge"
${lotus_path}/lotus-miner sectors pledge
blue_print2 "Waitting ${tm} minutes..."
echo -e ""
let idx++
#sleep 15m
sleep ${tm}m
done
echo -e ""
1
https://gitee.com/karry_ii/filecoin.git
git@gitee.com:karry_ii/filecoin.git
karry_ii
filecoin
filecoin
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891