Nodes in China
Problem
Users in China might experience bandwidth issues or slowness when building and downloading proof paramaters needed to run Lotus. This article provides a few tips to get around the bandwidth issues.
Speed up proof parameter download for first boot
Running Lotus requires the download of chain’s proof parameters which are large files which by default are hosted outside of China and very slow to download there. To get around that, users should set the following environment variable when running either of lotus
, lotus-miner
and lotus-worker
:
export IPFS_GATEWAY=https://proof-parameters.s3.cn-south-1.jdcloud-oss.com/ipfs/
Speed up Go module download during builds
Building Lotus requires downloading a few Go modules. These are usually hosted on Github, which has very low bandwidth from China. To fix this use a local proxy by setting the following variable before running Lotus:
export GOPROXY=https://goproxy.cn