2023-05-25 00:41:38 +08:00
2023-05-17 05:25:29 +00:00
2023-05-17 05:25:29 +00:00
2023-05-24 14:34:30 +08:00
2023-05-17 05:25:29 +00:00
2023-05-24 13:48:36 +08:00

stacks-node-mainnet

References:

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.

  1. Clone this repo
  2. Run ./setup.sh
  3. Run ./restore-backup.sh
  4. Run watch 'curl http://127.0.0.1:3999/extended/v1/status', wait until the block height matches that from https://api.hiro.so/v2/info
  5. 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
No description provided
Readme 146 KiB
Languages
Shell 100%