| .. | ||
| README.md | ||
| stack.yml | ||
lotus-node
Instructions for deploying a Lotus snap-synced node (for both mainnet and calibnet )
Prerequisite
Downloaded chain snapshot
aria2c -o mainnet-snapshot -x5 https://forest-archive.chainsafe.dev/latest/mainnet/
# or using wget
wget -O mainnet-snapshot https://forest-archive.chainsafe.dev/latest/mainnet/
Clone the stack repo
$ laconic-so fetch-stack git.vdb.to/cerc-io/lotus-stack
Clone required repositories
$ laconic-so --stack ~/cerc/lotus-stack/stack-orchestrator/stacks/lotus-node setup-repositories
Build the fixturenet-eth containers
$ laconic-so --stack ~/cerc/lotus-stack/stack-orchestrator/stacks/lotus-node build-containers
laconic-so --stack ~/cerc/lotus-stack/stack-orchestrator/stacks/lotus-node deploy up
Create a deployment
$ laconic-so --stack ~/cerc/lotus-stack/stack-orchestrator/stacks/lotus-node deploy init --map-ports-to-host any-same --output lotus-node.yml
$ laconic-so --stack ~/cerc/lotus-stack/stack-orchestrator/stacks/lotus-node deploy create --spec-file lotus-node.yml --deployment-dir lotus-node-deployment
Setup config
Set filepath of downloaded mainnet snapshot in config.env
Inside deployment directory, open the config.env file and set following env variables:
# Filepath of downloaded mainnet snapshot
CERC_LOTUS_SNAPSHOT_PATH=/path-to-file/mainnet-snapshot
Start the container
$ laconic-so deployment --dir lotus-node-deployment up
Check status
Clean up
Stop all services running in the background:
$ laconic-so deployment --dir lotus-node-deployment down
Clear volumes created by this stack: