- 获取节点扇区过期时间、过期扇区数量、到期释放质押币、此时终结惩罚(扇区在请求数据时进行终结,要惩罚的费用)
- 获取节点的锁仓释放明细
依赖安装
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=矿工号
143

被折叠的 条评论
为什么被折叠?



