Upgrading Your Node
These instructions are for full nodes that have ran on previous versions of and would like to upgrade to the latest testnet.
Reset Data
First, remove the outdated files and reset the data.
rm $HOME/.gitopia/config/addrbook.json $HOME/.gitopia/config/genesis.json
gitopiad unsafe-reset-all
Your node is now in a pristine state while keeping the original priv_validator.json
and config.toml
. If you had any sentry nodes or full nodes setup before,
your node will still try to connect to them, but may fail if they haven't also
been upgraded.
Make sure that every node has a unique priv_validator.json
. Do not copy the priv_validator.json
from an old node to multiple new nodes. Running two nodes with the same priv_validator.json
will cause you to double sign.
Software Upgrade
Now it is time to upgrade the software:
git clone gitopia://gitopia/gitopia
cd gitopia
git fetch --all && git checkout master
make install
NOTE: If you have issues at this step, please check that you have the latest stable version of GO installed.
Note we use master
here since it contains the latest stable release.
See the testnet repo for details on which version is needed for which testnet, and the gitopia release page for details on each release.
Your full node has been cleanly upgraded!