lotus 校准网络 ntwk-calibration

# lotus
export LOTUS_PATH=/cephfs/lotuswork/lotus
export LOTUS_STORAGE_PATH=/cephfs/lotuswork/lotusstorage
export WORKER_PATH=/cephfs/lotuswork/lotusworker
export TMPDIR=/cephfs/lotuswork/tmpdir

# FIL_PROOFS_PARAMETER
export FIL_PROOFS_PARAMETER_CACHE=/cephfs/filecoin-proof-parameters-v27
# IPFS_GATEWAY
export IPFS_GATEWAY=https://proof-parameters.s3.cn-south-1.jdcloud-oss.com/ipfs/
# FIL_PROOFS_PARENT_CACHE
export FIL_PROOFS_PARENT_CACHE=/cephfs/lotuswork/filecoin-parents

# GPU计算
export FIL_PROOFS_USE_GPU_COLUMN_BUILDER=1
export FIL_PROOFS_USE_GPU_TREE_BUILDER=1

export FIL_PROOFS_MAXIMIZE_CACHING=1

# 日志
# export RUST_LOG=info
# export RUST_LOG=trace
export RUST_BACKTRACE=full
export RUST_LOG=debug
# go env GOPROXY
# go env GO111MODULE
# go env -w GOPROXY=https://goproxy.cn,direct
# go env -w GO111MODULE=on
  • 终端代理
# export ALL_PROXY=socks5://127.0.0.1:1080
# git config --global http.proxy 'socks5://127.0.0.1:1080'
git clone --branch ntwk-calibration https://github.com/filecoin-project/lotus.git
# git show
commit b84030b3bdf19b953cbf330710453d20f3f3abfd (HEAD -> ntwk-calibration, tag: ntwk-calibration-7.21.1, origin/ntwk-calibration)
Author: Jakub Sztandera <[email protected]>
Date:   Tue Jul 21 03:41:18 2020 +0200

    Fix nonce setting in gas estimation
  • 编译安装
env RUSTFLAGS="-C target-cpu=native -g" FFI_BUILD_FROM_SOURCE=1 make clean all bench
env RUSTFLAGS="-C target-cpu=native -g" FIL_PROOFS_USE_GPU_COLUMN_BUILDER=1 FIL_PROOFS_USE_GPU_TREE_BUILDER=1 FFI_BUILD_FROM_SOURCE=1 make clean all bench
make install
nohup lotus daemon >> /cephfs/lotus.log 2>&1 &
lotus sync status
lotus sync wait
lotus wallet new bls
lotus wallet list

ntwk-calibration 水龙头

# lotus wallet balance
192000 FIL
  • 矿工初始化10分钟
lotus-miner init --owner=钱包地址 --sector-size=32GiB
nohup lotus-miner run >> /cephfs/miner.log 2>&1 &
lotus-miner info
lotus-miner sectors pledge
  • 修改扇区状态
# lotus-miner sectors list
0: CommitFailed sSet: NO active: NO tktH: 267 seedH: 2153 deals: [0]
  • lotus-miner sectors update-state --really-do-it 矿工ID FaultedFinal
# lotus-miner sectors update-state --really-do-it 0 FaultedFinal
# lotus-miner sectors list
0: FaultedFinal sSet: NO active: NO tktH: 267 seedH: 2153 deals: [0]

猜你喜欢

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