编译Filecoin

filecoin 编译过程中需要下载 proof-params 文件,默认从 IPFS官方网关(https://ipfs.io/ipfs/) 拉取,可通过环境变量IPFS_GATEWAY自定义,见 go-paramfetch

期间还需要从github下载 filecoin-ffi release tarball,见 install-filecoin ,可能会被墙,通过环境变量HTTPS_PROXY设置代理

具体执行命令如下:

git clone https://github.com/filecoin-project/go-filecoin.git
cd go-filecoin
# git checkout $USER_DEVNET_TAG
git submodule update --init --recursive

IPFS_GATEWAY=http://127.0.0.1:8080/ipfs/ HTTPS_PROXY=http://127.0.0.1:8010 go run ./build/main.go deps
IPFS_GATEWAY=http://127.0.0.1:8080/ipfs/ HTTPS_PROXY=http://127.0.0.1:8010 go run ./build/main.go build

Note:127.0.0.1:8080 为本地 IPFS 网关,127.0.0.1:8010 为代理服务

编译的 master 分支,能正常编译,但无法走完 Filecoin 官方 demo 流程。

发布了3 篇原创文章 · 获赞 0 · 访问量 73

猜你喜欢

转载自blog.csdn.net/DAOSHUXINDAN/article/details/104650467