其他分享
首页 > 其他分享> > lotus version 0.3.0+git1bfa2311 安装 interopnet

lotus version 0.3.0+git1bfa2311 安装 interopnet

作者:互联网

lotus version 0.3.0+git1bfa2311 安装

1,lotus interopnet 安装

# export ALL_PROXY=socks5://127.0.0.1:1080
# git config --global http.proxy 'socks5://127.0.0.1:1080'
# export GO111MODULE=on
# export GOPROXY=https://goproxy.cn
# mkdir interopnet
# cd interopnet/
git clone --branch interopnet https://github.com/filecoin-project/lotus.git
# git show
commit 1bfa2311d6931dc0c961d42f561ba0268dbd21c3 (HEAD -> interopnet, tag: interop.4.24, origin/interopnet)
Author: Travis Person <travisperson@users.noreply.github.com>
Date:   Fri Apr 24 22:28:33 2020 +0000

    New interopt network info
make clean all && make install
# lotus --version
lotus version 0.3.0+git1bfa2311

2,运行

export LOTUS_STORAGE_PATH=/storage/lotuswork/lotusstorage
export LOTUS_PATH=/storage/lotuswork/lotus
export WORKER_PATH=/storage/lotuswork/lotusworker

export TMPDIR=/storage/lotuswork/tmpdir

#v25
export FIL_PROOFS_PARAMETER_CACHE=/storage/filecoin-proof-parameters-v25
export IPFS_GATEWAY=https://proof-parameters.s3.cn-south-1.jdcloud-oss.com/ipfs/

#bench
export RUSTFLAGS="-C target-cpu=native -g"
export FFI_BUILD_FROM_SOURCE=1
export FIL_PROOFS_MAXIMIZE_CACHING=1

export RUST_LOG=info
lotus fetch-params --proving-params=32GiB

3,bench编译

make clean deps bench
./bench sealing --storage-dir=/storage/benchtmp --sector-size=32GiB
# ./bench --version
2020-04-26T10:54:22.507+0800	INFO	lotus-bench	lotus-bench/main.go:72	Starting lotus-bench
lotus-bench version 0.3.0
2020-04-26T10:59:51.077+0800	INFO	lotus-bench	lotus-bench/main.go:447	Writing piece into sector...
2020-04-26T10:59:51.077 INFO filcrypto::proofs::api > write_with_alignment: start
2020-04-26T11:06:18.073 INFO filcrypto::proofs::api > write_with_alignment: finish
2020-04-26T11:06:18.074+0800	INFO	lotus-bench	lotus-bench/main.go:461	Running replication(1)...
2020-04-26T11:06:18.075 INFO filcrypto::proofs::api > seal_pre_commit_phase1: start
2020-04-26T11:06:18.075 INFO filecoin_proofs::api::seal > seal_pre_commit_phase1: start
2020-04-26T11:06:33.734 INFO storage_proofs_porep::stacked::vanilla::graph > using parents cache of unlimited size
2020-04-26T11:06:33.734 INFO storage_proofs_porep::stacked::vanilla::graph > filling parents cache
2020-04-26T11:07:49.570 INFO storage_proofs_porep::stacked::vanilla::graph > cache filled
2020-04-26T11:07:49.570 INFO filecoin_proofs::api::seal > building merkle tree for the original data
2020-04-26T11:08:06.602 INFO filcrypto::proofs::api > seal_pre_commit_phase1: finish
2020-04-26T11:08:13.725+0800	WARN	lotus-bench	lotus-bench/main.go:88	failed to run seals:
    main.glob..func3
        /root/interopnet/lotus/cmd/lotus-bench/main.go:231
  - commit:
    main.runSeals
        /root/interopnet/lotus/cmd/lotus-bench/main.go:465
  - presealing sector 1 (/storage/benchtmp/bench034919312/unsealed/s-t01000-1):
    github.com/filecoin-project/sector-storage/ffiwrapper.(*Sealer).SealPreCommit1
        /root/go/pkg/mod/github.com/filecoin-project/sector-storage@v0.0.0-20200423222053-9eb049a833b9/ffiwrapper/sealer_cgo.go:232
  - failed to sync file

4,同步区块高度

nohup lotus daemon >> /storage/lotus.log 2>&1 &

标签:04,lotus,0.3,storage,bench,version,2020,export
来源: https://blog.csdn.net/u010953692/article/details/105763341