mirror of
https://github.com/alexgo-io/stacks-node-mainnet.git
synced 2026-01-12 14:53:47 +08:00
2ec46cbbd07191cb40547555a4558e9e7f6df337
stacks-node-mainnet
References:
- https://docs.hiro.so/stacks-blockchain-api/how-to-guides/how-to-run-mainnet-node
- https://docs.hiro.so/references/hiro-archive
Note: use stop.sh to shutdown daemons!
How to spin up a stacks-node from archive
The scripts works on debian 11. And always check if you're using the latest versions in docker-compose.yml.
# prerequisites
./setup.sh
Start 2 terminals to restore stacks node and postgres.
# terminal 1
./restore-archive-pg.sh
# terminal 2
./restore-archive-node.sh
Start all daemons
./start.sh
Check if everything works.
docker-compose logs -f
Check if blocks catch up with official node: https://api.hiro.so/v2/info
curl http://127.0.0.1:20443/v2/info
Description
Languages
Shell
100%