lotus 扇区续期检查

mkdir check
cd check/

sectors list

lotus-miner sectors list > list.txt

查看扇区

# head -n 2 list.txt
ID     State          OnChain  Active  Expiration                         Deals  DealWeight
0      Proving        YES      NO      2899844 (2 weeks 4 days ago)       CC

已过期扇区

# cat list.txt | grep -w ago | wc -l
10033

未过期扇区

# cat list.txt | grep -wv ago | wc -l
42747
cat list.txt | grep -wv ago > Proving.txt
# head -n 2 Proving.txt
ID     State          OnChain  Active  Expiration                         Deals  DealWeight
447    Proving        YES      YES     4508631 (in 1 year 24 weeks)       CC

可以续期扇区

# cat Proving.txt | grep -v ID | wc -l
42746

已续期540天扇区

# cat Proving.txt | grep "in 1 year 24 weeks" | wc -l
42702

未完成扇区

# cat Proving.txt | grep -Ev "in 1 year 24 weeks" | grep -v ID |  wc -l
44
cat extend.txt
	PreCommitting: 39
	TerminateWait: 5

猜你喜欢

转载自blog.csdn.net/u010953692/article/details/131255144
今日推荐