Lotus 文档

Lotus 文档

  • 1,Lotus 文档
  • 2,显卡GPU

1,Lotus 文档

  • 安装依赖
go version
gcc --version
git --version
bzr --version
jq --version
pkg-config --version
apt install ocl-icd-* opencl-headers clinfo llvm clang
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  • 删除数据
# rm -rf ~/.lotus ~/.lotusstorage/
  • Ubuntu 18.04 LTS 安装lotus
  • git clone下载缓慢设置终端代理
# systemctl status  s-libev-local@config
# export ALL_PROXY=socks5://127.0.0.1:1080
# git clone https://github.com/filecoin-project/lotus.git
# cd lotus/
# make clean all && make install
  • error报错
go: github.com/filecoin-project/[email protected]: Get https://proxy.golang.org/github.com/filecoin-project/go-amt-ipld/@v/v0.0.0-20191203073133-f941215342ed.mod: dial tcp 172.217.24.17:443: i/o timeout
# vim /root/lotus/build/paramfetch.go
//const gateway = "https://ipfs.io/ipfs/"
const gateway = "https://ipfs.globalupload.io/"
  • 重新编译安装
# export GO111MODULE=on
# export GOPROXY=https://goproxy.io
# make clean all && make install

go build  -o lotus-storage-miner ./cmd/lotus-storage-miner
go run github.com/GeertJohan/go.rice/rice append --exec lotus-storage-miner -i ./build
install -C ./lotus /usr/local/bin/lotus
install -C ./lotus-storage-miner /usr/local/bin/lotus-storage-miner
  • 后台运行
# lotus daemon >> /var/log/lotus.log 2>&1 &
  • 复制证明参数下载
# tail -f /var/log/lotus.log
2019-12-05T23:24:24.372+0800	INFO	repo	repo/fsrepo.go:97	Initializing repo at '/root/.lotus'
2019-12-05T23:24:24.373+0800	INFO	build	build/paramfetch.go:139	Fetching /var/tmp/filecoin-proof-parameters/v20-proof-of-spacetime-election-6c7cbfe7eed40b6c0b23a213a70648770aed65d9ca03ae85451573c18532304b.vk from https://ipfs.globalupload.io/
  • 节点连接
# lotus net peers | wc -l
71
  • 查看区块高度同步
# lotus sync wait
  • 列出钱包地址
# lotus wallet list
  • 创建钱包地址
# lotus wallet new bls
t3wggxlcbmesgpugp7uwobgyycbi3l6xsr4v26x3kuueyyymicfjgnwxh2ma2pyzhx5rs2us2qbn62frusr2ca

2,显卡GPU

  • bellman/src/gpu/utils.rs
            ("GeForce RTX 2080 Ti".to_string(), 4352),
            ("GeForce RTX 2080 SUPER".to_string(), 3072),
            ("GeForce RTX 2080".to_string(), 2944),
            ("GeForce GTX 1080 Ti".to_string(), 3584),
            ("GeForce GTX 1080".to_string(), 2560),
            ("GeForce GTX 1060".to_string(), 1280),

参考:

  1. LOTUS DOCUMENTATION 0.2
  2. lotus documentation
  3. lotus web 统计界面
  4. Goproxy 中国
  5. Filecoin Proofs 复制证明参数
  6. Filecoin Docs

你可能感兴趣的:(IPFS,lotus,devnet/10,显卡)