In some cases you might want (or need) to do a full redeploy with clean state before deploying a new version of the network. This should never actually be used during a Mainnet unless there is some serious corruption, but your node will have to spend time catching up to the rest of the network.
The following instructions assume that your
datadir is defined as
/serverdir/node in your node's config.
oasis-node server process (this will depend on your own deployment setup).
Remove blockchain state using the
oasis-node unsafe-reset command:
# Do a dry run first to see which files will get deleted.oasis-node unsafe-reset --datadir=/serverdir/node --dry_run --log.level info# Delete.oasis-node unsafe-reset --datadir /serverdir/node --log.level info
Start the oasis-node server process.
A full state wipe will also mean that you'll need to generate a new node identity (or copy the old one).
oasis-node server process (this will depend on your own deployment setup)
Remove the the
Redeploy your node. You'll need to copy your Node artifacts or create brand new ones.