3 Star 4 Fork 5

忆城/filecoin_介绍文档

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
auto_pledge_sector.sh 1.19 KB
一键复制 编辑 原始数据 按行查看 历史
#########################################################################
# 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 ""
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/E0001/filecoin-introduction-document.git
git@gitee.com:E0001/filecoin-introduction-document.git
E0001
filecoin-introduction-document
filecoin_介绍文档
master

搜索帮助