Skip to content

Commit 10fd266

Browse files
tippeneinbrady.ouren
andauthored
chore: improve upgrade documentation in readme and changelog note (#2070)
Co-authored-by: brady.ouren <[email protected]>
1 parent a38a35f commit 10fd266

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
### ⚠ BREAKING CHANGES
55

6+
> [!NOTE]
7+
> The client version number is synchronized with the API's version number, necessitating a major version bump. This does _not_ require DB restore.
8+
69
* refactor from express to fastify (#2045)
710
* refactor from Express to Fastify
811

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99

1010
### Local
1111

12-
This service requires `postgres`, `stacks-node`, `bitcoind`, and a few other components in order to run.
12+
This service requires `postgres`, `stacks-node`, `bitcoind`, and a few other components in order to run.
1313
The [`clarinet`](https://github.com/hirosystems/clarinet) project provides an easy way to spin up the API and all these services:
1414
> clarinet devnet - a local standalone development environment that simulates Bitcoin, Stacks node and other helpful components, similar to a staging environment.
1515
16-
Get started at https://docs.hiro.so/clarinet/getting-started
16+
Get started at https://docs.hiro.so/clarinet/getting-started
1717

1818
### Production
1919

@@ -36,7 +36,7 @@ Check to see if the server started successfully by visiting http://localhost:399
3636

3737
## Local Development
3838

39-
To run the server, run `npm run dev:integrated`, which uses docker-compose to deploy the service dependencies (e.g., PostgreSQL, Stacks core node, etc.).
39+
To run the server, run `npm run dev:integrated`, which uses docker-compose to deploy the service dependencies (e.g., PostgreSQL, Stacks core node, etc.).
4040

4141
You'll have a server on port 3999.
4242

@@ -52,7 +52,7 @@ We recommend running the API database on PostgreSQL version 14 or newer for opti
5252

5353
## Upgrading
5454

55-
If upgrading the API to a new major version (e.g., `3.0.0` to `4.0.0`), then the Postgres database from the previous version will not be compatible, and the process will fail to start.
55+
If upgrading the API to a new major version (e.g., `3.0.0` to `4.0.0`), then the Postgres database from the previous version will likely be incompatible, and the process will fail to start. However, in some cases, the major versions are for client library changes (which are synced with the api version number). Check the changelog if you're unclear.
5656

5757
[Event Replay](#event-replay) must be used when upgrading major versions. Follow the event replay [instructions](#event-replay-instructions) below. Failure to do so will require wiping the Stacks Blockchain chain state data and the API Postgres database and re-syncing from scratch.
5858

@@ -170,7 +170,7 @@ To run the new event-replay, please follow the instructions at [stacks-event-rep
170170
* `archival` (default): The process will import and ingest *all* blockchain events that have
171171
happened since the first block.
172172
* `pruned`: The import process will ignore some prunable events (mempool, microblocks) until the
173-
import block height has reached `chain tip - 256` blocks. This saves considerable
173+
import block height has reached `chain tip - 256` blocks. This saves considerable
174174
time during import but sacrifices some historical data. You can use this mode if you're mostly
175175
interested in running an API that prioritizes real-time information.
176176

@@ -189,7 +189,7 @@ Please **do not** use the issue tracker for personal support requests or to ask
189189
Development of this product happens in the open on GitHub, and we are grateful to the community for contributing bug fixes and improvements. Read below to learn how you can take part in improving the product.
190190

191191
### Code of Conduct
192-
Please read our [Code of Conduct](../../../.github/blob/main/CODE_OF_CONDUCT.md) since we expect project participants to adhere to it.
192+
Please read our [Code of Conduct](../../../.github/blob/main/CODE_OF_CONDUCT.md) since we expect project participants to adhere to it.
193193

194194
### Contributing Guide
195195

@@ -199,7 +199,7 @@ Hiro welcomes all contributions to Hiro documentation. These contributions come
199199

200200
Bugs, feature requests, and development-related questions should be directed to our [GitHub issues tracker](https://github.com/hirosystems/stacks-blockchain-api/issues/new).
201201

202-
If reporting a bug, try to provide as much context as possible and anything else that might be relevant to the describe the issue. If possible include a simple test case that we can use to reproduce the problem on our own.
202+
If reporting a bug, try to provide as much context as possible and anything else that might be relevant to the describe the issue. If possible include a simple test case that we can use to reproduce the problem on our own.
203203

204204
For feature requests, please explain what you're trying to do, and how the requested feature would be a complement to the project.
205205

0 commit comments

Comments
 (0)