代码拉取完成,页面将自动刷新
同步操作将从 karry_ii/filecoin 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#########################################################################
# File Name: start_daemon.sh
# Author: tears
# mail: tears@tears.com
# Created Time: 2020年03月13日 星期五 20时02分59秒
#########################################################################
#!/bin/bash
genesis_host_name="tears"
genesis_host_ip="192.168.1.11"
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 "Reseting data..."
# sleep 2s
# ./reset_lotus.sh
rm -rf ~/.lotus
rm -rf ~/.lotusminer/
rm -rf ~/dev.gen
rm -rf ~/.genesis-sectors
rm -rf ~/.lotusworker
rm -rf ~/localnet.json
blue_print "Reseting data finished!"
echo -e ""
green_print "Copying genesis data..."
# sleep 2s
scp ${genesis_host_name}@${genesis_host_ip}:/home/tears/dev.gen /home/tears/dev.gen
blue_print "Copying genesis data finished!"
echo -e ""
green_print "Starting lotus daemon..."
# sleep 1s
t=$(date +%Y_%m_%d_%H_%M)
screen -L -S daemon -t daemon_$t ${lotus_path}/lotus daemon --genesis=dev.gen --bootstrap=false
blue_print "Starting lotus daemon finished!"
echo -e "\n"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。