Skip to content

Commit

Permalink
Update upgrade README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yakud committed Apr 5, 2024
1 parent bed649b commit 4cbed9f
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions app/upgrades/v0_1_2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@
## Guide for Upgrading from v0.1.1 to v0.1.2

1. Halt the currently running `galacticad` process.
2. Fetch the latest updates from the repository and switch to the `v0.1.2` tag.
2. **!!! Backup the data directory.** !!!
3. Fetch the latest updates from the repository and switch to the `v0.1.2` tag.
```bash
git fetch --all --tags
git checkout v0.1.2
```
3. Build the updated source code.
4. Build the updated source code.
```bash
make install
```
4. Execute the upgrade script located at ./scripts/upgrade_v0_1_2.sh
5. Execute the upgrade script located at ./scripts/upgrade_v0_1_2.sh
```bash
./scripts/upgrade_v0_1_2.sh
```
Expand All @@ -21,6 +22,15 @@

The script executes the following operations:
- Updates the node storage to version v0.1.2.
- Reverts the state of the latest block.
- Creates a backup of the current priv_validator_state.json and replaces it with a new version with default settings.
5. Restart the `galacticad` node.
- Roll back the state of the most recent block.
- Backup of the current priv_validator_state.json and replaces it with a new version with default settings.

Alternatively, these steps can be performed manually:
```bash
galacticad --home $GALACTICA_HOME rollback --hard
echo '{"height":"0","round":0,"step":0}' > $GALACTICA_HOME/data/priv_validator_state.json
```
Executing the rollback command will also automatically execute the storage upgrade.

6. Restart the `galacticad` node.

0 comments on commit 4cbed9f

Please sign in to comment.