Swisstronik v4 Testnet
Upgrade plan for v1.0.3
The upcoming v1.0.3 upgrade will introduce a couple of new features:
Performance improvements
The ability to send unencrypted transactions to simplify user onboarding
Backup
Prior to the upgrade, validators are encouraged to take a full data snapshot. Snapshotting depends heavily on infrastructure, but generally, this can be done by backing up the .swisstronik
directory. If you use Cosmovisor to upgrade, by default, Cosmovisor will backup your data upon upgrade. See the 'Upgrade by Cosmovisor' section below.
It is critically important for validator operators to back up the .swisstronik/data/priv_validator_state.json
file after stopping the gaiad process. This file is updated every block as your validator participates in consensus rounds. It is a critical file needed to prevent double-signing in case the upgrade fails and the previous chain needs to be restarted.
Manually
If you're not using cosmovisor, you can perform the upgrade manually.
Prepare new binary
Download the new binary:
Extract the downloaded archive:
In bin
folder you will be able to find required files.
Copy libsgx_wrapper_v1.0.3.x86_64.so
lib:
Copy v1.0.3_enclave.signed.so
to ENCLAVE_HOME
directory (by default it is $HOME/.swisstronik-enclave
):
DURING UPGRADE: Modify your .service file
Once your validator reach upgrade height, it will stop produce new blocks automatically. After your node stopped, switch the binary you're using to swisstronikd
v1.0.3 at ExecStart
in your .service
file.
NOTE: swisstronikd
v1.0.3 is located in bin
folder from previous step with unpacking .zip
archive.
Then run:
Then you should restart your validator.
Using Cosmovisor
If you're running your node using Cosmovisor, please follow these steps.
Download binaries
Download the new binary:
Extract the downloaded archive:
In bin
folder you will find the required files.
Copy libsgx_wrapper_v1.0.3.x86_64.so
to the library directory:
Copy v1.0.3_enclave.signed.so
to ENCLAVE_HOME
directory (by default it is $HOME/.swisstronik-enclave
):
Setup Cosmovisor
If you haven't configured Cosmovisor before, follow these steps:
Install the latest version of Cosmovisor (1.5.0):
Rename and copy swisstronikd_v1.0.2
to swisstronikd
:
Initialize Cosmovisor:
Put v1.0.3 binaries
Copy swisstronik
v1.0.3 to $HOME/.swisstronik/cosmovisor/upgrades/v1.0.3/bin
NOTE: swisstronikd
v1.0.3 is located in bin
folder from previous step with unpacking .zip
archive.
Check folder structure
At this moment, you should have the following structure:
Export the Environmental Variables
Disable auto downloading of binaries
Set DAEMON_ALLOW_DOWNLOAD_BINARIES
to false
to avoid Cosmovisor trying to download binaries.
Start the node
Start the node:
Skipping the invariant checks is strongly encouraged since it decreases the upgrade time significantly and since there are other improvements coming to the crisis module in the next release of the Cosmos SDK.
NOTE: in v1.0.3 release we've enabled possibility to send unencrypted transactions. To expose JSON-RPC for them, specify --json-rpc.address-unencrypted
and json-rpc.ws-address-unencrypted
parameters.
Last updated