You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Deleted services related to sBTC, mempool and grafana
5
-
-Added 5 stacks miners, by default there are 3 miners competing for mining
5
+
-Configured for 3 stacks miners and signers
6
6
- bind-mounts a local filesystem for data persistence
7
+
- Uses a chainstate archive to boot the network quickly
8
+
- Configurable signing weight across the 3 signers
7
9
8
10
## Quickstart
9
11
10
-
### Start network in Epoch 3.2
12
+
### Start network using a chainstate archive
13
+
*Note*: default chainstate archive at `./docker/chainstate.tar.zstd` will be used unless overridden by `CHAINSTATE_ARCHIVE` env var.
14
+
11
15
Creates a dynamic chainstate folder at `./docker/chainstate/$(date +%s)` from a chainstate archive
12
16
```sh
13
17
make up
14
18
```
19
+
To override the archive used to restore the network:
20
+
```sh
21
+
CHAINSTATE_ARCHIVE=./docker/chainsate_new.tar.zstd make up
22
+
```
15
23
16
24
### Start network from genesis
17
25
Creates a static chainstate folder at `./docker/chainstate/genesis`
@@ -92,6 +100,7 @@ CORES=10 TIMEOUT=60 make stress
92
100
#### Create a chainstate snapshot
93
101
- Setting the env var `PAUSE_HEIGHT` is optional to pause the chain at a specific height, else a default of Bitcoin block `999999999999` is used.
94
102
- Setting the env var `MINE_INTERVAL_EPOCH3` is recommended to reach the `PAUSE_HEIGHT` more quickly to create the snapshot
103
+
- Optionally, the `CHAINSTATE_ARCHIVE` env var may be set to store the archive in a non-default location/name
95
104
**This operation will work with either the `up` or `genesis` targets**
96
105
```sh
97
106
make genesis
@@ -105,7 +114,30 @@ Once the Bitcoin miner has reached the specified height:
105
114
```sh
106
115
make snapshot
107
116
```
108
-
This will first bring down the network, then replace the existing `./docker/chainstate.tar.zstd` archive file used with the `up` Makefile targer
117
+
This will first bring down the network, then replace the existing `./docker/chainstate.tar.zstd` archive file used with the `up` Makefile target.
118
+
119
+
To create the chainstate archive in a non-default location/name *File path must be absolute*:
120
+
```sh
121
+
CHAINSTATE_ARCHIVE=$(pwd)/docker/chainstate_new.tar.zstd make snapshot
122
+
```
123
+
124
+
**Note**: `CHAINSTATE_ARCHIVE` must be defined to use with `make up` to use a non-default snapshot.
125
+
ex:
126
+
```sh
127
+
CHAINSTATE_ARCHIVE=./docker/chainstate_new.tar.zstd make up
128
+
```
129
+
130
+
#### Force stop the devnet network
131
+
If the network is in a "stuck" state where the Makefile targets are not stopping the services (i.e. the `.current-chainstate-dir` file was removed while network was running), `down-force` may be used to force stop the network.
132
+
133
+
```sh
134
+
make down-force
135
+
```
136
+
137
+
Additionally, `clean` target will call `down-force`*and also* delete any chainstates on disk in `./docker/chainstate/*`
138
+
```sh
139
+
make clean
140
+
```
109
141
110
142
111
143
## Containers
@@ -118,6 +150,8 @@ This will first bring down the network, then replace the existing `./docker/chai
118
150
-**stacks-signer-1**: event observer for stacks-miner-1
119
151
-**stacks-signer-2**: event observer for stacks-miner-2
120
152
-**stacks-signer-3**: event observer for stacks-miner-3
153
+
-**stacks-api**: API instance receiving events from stacks-miner-1
154
+
-**postgres**: postgres DB used by stacks-api
121
155
-**stacker**: stack for `stacks-signer-1`, `stacks-signer-2` and `stacks-signer-3`
122
156
-**tx-broadcaster**: submits token transfer txs to ensure stacks block production during a sortition
123
157
-**monitor**: monitors block details and tracks stacking calls
@@ -175,40 +209,6 @@ This will first bring down the network, then replace the existing `./docker/chai
175
209
176
210
```
177
211
178
-
### Miner 4
179
-
180
-
```text
181
-
‣ Mnemonic: report weasel jealous pizza long order section oak dignity radar combine project broom glass bridge pulp glory magic dutch toe undo patient photo core
‣ Mnemonic: call police remember square people duck shadow glue cook major long sustain sphere spare cup chase humble recipe sell orbit sudden labor apple organ
‣ Mnemonic: position sport mango recycle thumb gasp lens zoo stand have mass prison icon stairs average silly grid swing famous trend hover ramp bunker raw
0 commit comments