ATTENTION: This guide is only for updating from commercio-testnet6001 to commercio-testnet6002 and for full nodes or validators that have followed the instructions reported here Installing a full node
The upgrade is scheduled for 16.00 CET (15.00 UTC) on Friday 21/02/2020
After genesis time the chain may not be started immediately: if the consensus is not reached, the first block will not be released.
It is important that 2/3 of the validator nodes must be on-line.
Becouse the previus status is relative small and we published it at Quick sync chain status. The previus status is relative about paused chain and it doesn't able to start another chain again. Keep safe only your ~/.cnd/config folder
systemctl stop cnd
pkill cncli
systemctl stop cncli # Works only if you installed service for rest server
cd ~/go/bin
wget "https://github.com/commercionetwork/commercionetwork/releases/download/v1.5.0/Linux-AMD64.zip"
unzip -o Linux-AMD64.zip
rm -rf Linux-AMD64.zip
cd ~/
rm -rf commercio-chains
mkdir commercio-chains && cd commercio-chains
git clone https://github.com/commercionetwork/chains.git .
cd commercio-testnet6002Update your CHAINID
export CHAINID=commercio-$(cat .data | grep -oP 'Name\s+\K\S+')
sed -ie "s|CHAINID=\".*\"|CHAINID=\"$CHAINID\"|g" ~/.profileTest if you have the correct binaries version:
cnd versionShould output the same version written inside the .data file: v1.5.0
Use this command to control it
cat .data | grep -oP 'Release\s+\K\S+'Reset chain and install new genesis:
cnd unsafe-reset-all
cp genesis.json ~/.cnd/configChange the persistent peers inside config.toml file
sed -e "s|persistent_peers = \".*\"|persistent_peers = \"$(cat .data | grep -oP 'Persistent peers\s+\K\S+')\"|g" ~/.cnd/config/config.toml > ~/.cnd/config/config.toml.tmp
mv ~/.cnd/config/config.toml.tmp ~/.cnd/config/config.tomlChange the seeds inside the config.toml file
sed -e "s|seeds = \".*\"|seeds = \"$(cat .data | grep -oP 'Seeds\s+\K\S+')\"|g" ~/.cnd/config/config.toml > ~/.cnd/config/config.toml.tmp
mv ~/.cnd/config/config.toml.tmp ~/.cnd/config/config.tomlsystemctl start cndControl if the node was started. Use Ctrl + C to interrupt the tail command
tail -100f /var/log/syslogOutput should be like below if you start the chain before the genesis time
#Feb 21 10:38:33 yournodehost cnd[25314]: I[2020-02-21|10:38:33.401] starting ABCI with Tendermint module=mainUpdate cncli config
cncli config chain-id $CHAINIDIf you need you can start rest server with command
cncli rest-server >/dev/null 2>&1 &In order to update the OS so that you can work properly, execute the following commands:
apt update && apt upgrade -y
snap refresh goBefore update the node, get commercio-testnet6002 chain data
rm -rf commercio-chains
mkdir commercio-chains && cd commercio-chains
git clone https://github.com/commercionetwork/chains.git .
cd commercio-testnet6002Compile binaries
systemctl stop cnd
pkill cncli
systemctl stop cncli # Works only if you installed service for rest server
git init .
git remote add origin https://github.com/commercionetwork/commercionetwork.git
git pull
git checkout tags/$(cat .data | grep -oP 'Release\s+\K\S+')
make installTest if you have the correct binaries version:
cnd versionShould output the same version written inside the .data file: v1.5.0
Use this command to control it
cat .data | grep -oP 'Release\s+\K\S+'Update CHAINID:
export CHAINID=commercio-$(cat .data | grep -oP 'Name\s+\K\S+')
sed -ie "s|CHAINID=\".*\"|CHAINID=\"$CHAINID\"|g" ~/.profileReset chain and install new genesis:
cnd unsafe-reset-all
cp genesis.json ~/.cnd/configChange the persistent peers inside config.toml file
sed -e "s|persistent_peers = \".*\"|persistent_peers = \"$(cat .data | grep -oP 'Persistent peers\s+\K\S+')\"|g" ~/.cnd/config/config.toml > ~/.cnd/config/config.toml.tmp
mv ~/.cnd/config/config.toml.tmp ~/.cnd/config/config.tomlChange the seeds inside the config.toml file
sed -e "s|seeds = \".*\"|seeds = \"$(cat .data | grep -oP 'Seeds\s+\K\S+')\"|g" ~/.cnd/config/config.toml > ~/.cnd/config/config.toml.tmp
mv ~/.cnd/config/config.toml.tmp ~/.cnd/config/config.tomlsystemctl start cndControl if the sync was started. Use Ctrl + C to interrupt the tail command
tail -100f /var/log/syslogOutput should be like below if you start the chain before the genesis time
#Feb 21 10:38:33 yournodehost cnd[25314]: I[2020-02-21|10:38:33.401] starting ABCI with Tendermint module=mainUpdate cncli config
cncli config chain-id $CHAINIDIf you need you can start rest server with command
cncli rest-server >/dev/null 2>&1 &