sectors_penalty 搭建

  • 获取节点扇区过期时间、过期扇区数量、到期释放质押币、此时终结惩罚(扇区在请求数据时进行终结,要惩罚的费用)
  • 获取节点的锁仓释放明细

依赖安装

apt install mesa-opencl-icd ocl-icd-opencl-dev gcc git bzr jq pkg-config curl clang build-essential hwloc libhwloc-dev wget -y

Go version of v1.21.7

wget https://go.dev/dl/go1.21.7.illumos-amd64.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.21.7.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
go version
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

编译 sectors_penalty

git clone https://github.com/beck-8/sectors_penalty.git
cd sectors_penalty/

编译 filecoin-ffi

git clone https://github.com/filecoin-project/filecoin-ffi.git extern/filecoin-ffi
cd extern/filecoin-ffi
make
cd ../..
make

运行 sectors_penalty

sectors_penalty.sh
#!/bin/bash
# lotus auth api-info --perm read
export FULLNODE_API_INFO=/ip4/192.168.1.1/tcp/1234/http
nohup /root/sectors_penalty/sectors_penalty > /root/sectors_penalty/sectors_penalty.log 2>&1 &

默认端口 8099

# netstat -ntlp | grep 8099 
tcp6       0      0 :::8099                 :::*                    LISTEN      2990936/sectors_pen 

查询

http://IP地址:8099/penalty?miner=f01155
http://IP地址:8099/penalty?miner=矿工号

参考

  1. sectors_penalty
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值