Swisstronik v5.1 Testnet
Upgrade plan for v1.0.5
The v1.0.5 upgrade includes the following changes:
Increased balance of faucet addresses to handle increased demand in SWTR coins;
Various minor improvements for testing.
Backup
Before the upgrade, validators are strongly encouraged to take a full data snapshot. The snapshotting process depends on your infrastructure, but generally, it can be done by backing up the .swisstronik
directory. If you use Cosmovisor for the upgrade, it will automatically back up your data upon upgrading by default. For more details, refer to 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 swisstronikd
process. This file is updated every block as your validator participates in consensus rounds and is essential to prevent double-signing if the upgrade fails and the previous chain needs to be restarted.
Manual upgrade
If you're not using Cosmovisor, you can perform the upgrade manually by following these steps:
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.5.x86_64.so
library:
Copy v1.0.5_enclave.signed.so
to ENCLAVE_HOME
directory (by default it is $HOME/.swisstronik-enclave
):
DURING UPGRADE: Modify your .service file
When your validator reaches the upgrade height, it will automatically stop producing new blocks. After your node has stopped, update the .service
file to switch the binary you’re using to swisstronikd
v1.0.5 by modifying the ExecStart
line.
Note: The swisstronikd
v 1.0.5 binary is located in the bin
folder from the previous step where you unpacked the .zip
archive.
To apply the changes, run:
Then, restart your validator.
Using Cosmovisor
If you're running your node using Cosmovisor, please follow these steps.
Download binaries
Download new binary:
Extract downloaded archive:
You will find the required files in the bin
folder.
Copy
libsgx_wrapper_v1.0.5.x86_64.so
library:
Copy
v1.0.5_enclave.signed.so
toENCLAVE_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):
Verify the installation:
Copy old
swisstronikd
binary:
Initialize Cosmovisor:
Set the following environment variables:
Then, initialize Cosmovisor:
Put v1.0.5 binaries
Copy swisstronikd
v1.0.5 to the correct directory:
Create the upgrade directory:
Copy the new binary:
NOTE: swisstronikd
v1.0.5 binary is located in the bin
folder from the previous step where you unpacked the .zip
archive.
Check folder structure
At this point, you should have the following directory structure:
Export the environmental variables:
Disable auto downloading of binaries
To prevent Cosmovisor from automatically downloading binaries, set DAEMON_ALLOW_DOWNLOAD_BINARIES
to false
:
Start the node
Start your node with the following command:
Skipping the invariant checks is strongly encouraged, as it significantly decreases the upgrade time. Additionally, further improvements to the crisis module are expected in the next release of the Cosmos SDK.
Last updated