mirror of
https://github.com/alexgo-io/stacks-node-mainnet.git
synced 2026-01-12 22:24:12 +08:00
f3e60d33abce37f0985fa2b3afba0771a946c240
stacks-node-mainnet
References:
- https://docs.hiro.so/stacks-blockchain-api/how-to-guides/how-to-run-mainnet-node
- https://docs.hiro.so/hiro-archive/overview
Note: use stop.sh to shutdown daemons!
How to spin up a stacks-node from cold backup
The scripts are tested on debian 11. Clone this repo and follow the steps.
- Clone this repo
- Run ./setup.sh
- Run ./restore-backup.sh
- Run
watch 'curl http://127.0.0.1:3999/extended/v1/status', wait until the block height matches that fromhttps://api.hiro.so/v2/info - Done
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%