πŸ”ƒUpgrade

///// Upgrade? Oh damn, what's that?

Latest Version
Chain ID
Custom Port

v1.0.2

swisstronik_1291-1

:21

Install DCAP Libraries

If you device 5th Generation Xeon SP, you need to install additional Package

Download Latest Version (1.0.2)

Next, you need to copy v1.0.2_enclave.signed.so in /usr/lib to directory with already existing enclave.signed.so (default directory : $HOME/.swisstronik-enclave) file. DONT REPLACE enclave.signed.so, just copy and paste on the same DIR

Pass Remote Attestation

Let's we test request encryption keys to rpc swisstronik official, using one of this commands :

Found problem? Find here, with some solution!

  • Cannot find swisstronikd binary? Download old binaries from here, and move it to /usr/local/bin

  • If you got error libsgx_wrapper.x86_64.so copy the file from you download (old-binaries) move it to dir /usr/lib

============================================================

UPGRADE IMMEDIATELY TO LATEST BINARY (1.0.2)

After saving all binaries and dependencies, please update the configuration to the new settings:

  • Backup Backup everything again. Please ensure, that you backuped following folders:

  1. .swisstronik. This is required to be able to rollback upgrade

  2. .swisstronik-enclave folder and enclave.signed.so file. This is required to be able to restore the encryption key

  • Download latest genesis.json Download genesis.json file for v1.0.2 version :

  • Update Validator

    1. Backup .swisstronik/data/priv_validator_state.json, .swisstronik/config/priv_validator_key.json and .swisstronik/config/node_key.json

    2. Then run swisstronikd tendermint unsafe-reset-all --keep-addr-book to clean all state chain and also you should remove file .swisstronik/config/genesis.json.bak

    3. Replace .swisstronik/config/genesis.json with downloaded from us

    4. Update min gas prices in app.toml to correct denom. Sample command: sed -i 's/minimum-gas-prices = "7uswtr"/minimum-gas-prices = "7aswtr"/' ~/.swisstronik/config/app.toml

    5. Restore .swisstronik/config/priv_validator_key.json and .swisstronik/config/node_key.json and `priv_validator_state.json`from backup.

    6. Set halt-height in .swisstronik/config/app.toml to 0

    7. Update .service file for your validator with updated binaries. Updated binary swisstronikd_v1.0.2 by default stored in /usr/local/bin. Updated enclave file by default stored in /usr/lib.

    8. Reload daemon sudo systemctl daemon-reload

    9. Restart your validator

NOTE: SEED_HOME env var was renamed to KEYMANAGER_HOME and should lead to directory with .keymanager (~/.swisstronik-enclave by default)

Last updated

Was this helpful?