chore: use stacks api 8.1.1

This commit is contained in:
mhatal
2024-10-21 04:36:29 -05:00
parent 531fbc0fb6
commit 5e59f7d8b3
4 changed files with 5 additions and 5 deletions

View File

@@ -16,7 +16,7 @@ The scripts are tested on debian 12. Clone this repo and follow the steps.
1. Run ./setup.sh and reboot the server
2. Restore the latest backup from https://github.com/alexgo-io/stacks-node-mainnet/releases
3. Run ./start.sh
4. Run `watch 'curl -s http://127.0.0.1:3999/extended/v1/status'`, wait until the block height matches that from `https://api.hiro.so/v2/info`
4. Run `watch 'curl -s http://127.0.0.1:3999/extended'`, 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
@@ -52,5 +52,5 @@ docker-compose logs -f
Wait until the block height catches up with official node: `https://api.hiro.so/v2/info`
```bash
watch 'curl -s http://127.0.0.1:3999/extended/v1/status'
watch 'curl -s http://127.0.0.1:3999/extended'
```

View File

@@ -2,7 +2,7 @@ static_resources:
listeners:
- address:
socket_address:
address: 0.0.0.0
address: "::"
port_value: 3999
filter_chains:
- filters:

View File

@@ -24,7 +24,7 @@ services:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
stacks-blockchain-api:
restart: always
image: hirosystems/stacks-blockchain-api:8.0.3
image: hirosystems/stacks-blockchain-api:8.1.1
container_name: stacks_api
entrypoint: "/wait"
network_mode: host

View File

@@ -10,7 +10,7 @@ if [ -e postresql ]; then
fi
mkdir postgresql
curl -o postgresql/latest.dump https://archive.hiro.so/mainnet/stacks-blockchain-api-pg/stacks-blockchain-api-pg-15-8.0.3-latest.dump
curl -o postgresql/latest.dump https://archive.hiro.so/mainnet/stacks-blockchain-api-pg/stacks-blockchain-api-pg-15-8.1.0-latest.dump
docker-compose up -d stacks-blockchain-postgres
WAIT_HOSTS='127.0.0.1:5432' ./wait