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
爲代理服務