Skip to content

Commit

Permalink
feat: v1.19.3 upgrade guide
Browse files Browse the repository at this point in the history
  • Loading branch information
holyxiaoxin committed Sep 16, 2021
1 parent cd2793c commit 65ef6b3
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,12 @@ Ref: https://keepachangelog.com/en/1.0.0/
### Bug Fixes

- Fix slow websocket blocktimes due to slow db queries

## [v1.19.0](https://github.com/Switcheo/tradehub/releases/tag/v1.19.0) - 2021-08-12
### Improvements
- Allow adjusting of lotsize and ticksize through update market
- Optimise msg_types db queries

### Bug Fixes
- Fix insufficient order margin for some orders in the order book
- Fix adl module ranking short positions incorrectly
31 changes: 31 additions & 0 deletions upgrade/v1.19.3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# MainNet v1.19.x -> v1.19.3 Upgrade Instructions

The following instructions will allow patch your node from v1.19.x to v1.19.3. The binaries must be placed in `~/.switcheod/cosmovisor/upgrades/v1.19.0` directory so that cosmovisor will start with the right binaries.

**:exclamation: Run these steps in sequence, do not skip any steps! :exclamation:**

1. Download and upgrade using the v1.19.3 release bundle.

The [v1.19.3 release bundle](https://github.com/Switcheo/tradehub/releases/tag/v1.19.3) contains v1.19.3 binaries.

We will be placing v1.19.3 binaries (`switcheod` / `switcheocli`) in the `cosmovisor/upgrades/v1.19.0` directory. Cosmovisor will switch to the right binary during the upgrade block height.

```bash
curl -L https://github.com/Switcheo/tradehub/releases/download/v1.19.3/install-mainnet.tar.gz | tar -xz
cd install-mainnet && sudo ./install.sh && cd - && rm -rf install-mainnet

switcheoctl stop

# place v1.19.3 binaries into upgrades/v1.19.0 directory
sudo cp /etc/switcheoctl/bin/switcheod ~/.switcheod/cosmovisor/upgrades/v1.19.0/bin
sudo cp /etc/switcheoctl/bin/switcheocli ~/.switcheod/cosmovisor/upgrades/v1.19.0/bin

# ensure that you have installed the right binary, do not proceed if it's different.
openssl sha256 ~/.switcheod/cosmovisor/upgrades/v1.19.0/bin/switcheod
# a34985cc645559590a92ba749e58fc18696312a95216ccf6369f4040c4cb3877

# sentry node, non-validator node or
switcheoctl start -n
# validator node
switcheoctl start
```

0 comments on commit 65ef6b3

Please sign in to comment.