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

v1.0.2
swisstronik_1291-1
:21
DONT REPLACE swisstronikd BINARY ORIGINAL WITH NEW VERSION. WAIT FOR NEXT ANNOUNCEMENT
PLEASE READ IT CAREFULLY AND THOROUGHLY BEFORE EXECUTING !!! PLEASE READ IT CAREFULLY AND THOROUGHLY BEFORE EXECUTING !!! PLEASE READ IT CAREFULLY AND THOROUGHLY BEFORE EXECUTING !!!
Install DCAP Libraries
Download Latest Version (1.0.2)
If you found issue with libsnappy1v5, please install that package!
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
NOTE :
For update binary swisstronikd_v1.0.2 in /usr/local/lib . For updated enclave file in /usr/lib
For SEED_HOME environment variable has been renamed to KEYMANAGER_HOME and should point to the directory containing .keymanager (by default, this is ~/.swisstronik-enclave/.keymanager).
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
swisstronikdbinary? Download old binaries from here, and move it to/usr/local/bin
If you got error
libsgx_wrapper.x86_64.socopy 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:
BEFORE YOU UPRADED TO LATEST VERSION, MAKE SURE BLOCK HEIGHT ALREADY REACH TO 5430000
Backup Backup everything again. Please ensure, that you backuped following folders:
.swisstronik. This is required to be able to rollback upgrade.swisstronik-enclavefolder andenclave.signed.sofile. 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
Backup
.swisstronik/data/priv_validator_state.json,.swisstronik/config/priv_validator_key.jsonand.swisstronik/config/node_key.jsonThen run
swisstronikd tendermint unsafe-reset-all --keep-addr-bookto clean all state chain and also you should remove file.swisstronik/config/genesis.json.bakReplace
.swisstronik/config/genesis.jsonwith downloaded from usUpdate min gas prices in
app.tomlto correct denom. Sample command:sed -i 's/minimum-gas-prices = "7uswtr"/minimum-gas-prices = "7aswtr"/' ~/.swisstronik/config/app.tomlRestore
.swisstronik/config/priv_validator_key.jsonand.swisstronik/config/node_key.jsonand `priv_validator_state.json`from backup.Set
halt-heightin.swisstronik/config/app.tomlto0Update
.servicefile for your validator with updated binaries. Updated binaryswisstronikd_v1.0.2by default stored in/usr/local/bin. Updated enclave file by default stored in/usr/lib.Reload daemon
sudo systemctl daemon-reloadRestart your validator
Last updated
Was this helpful?