RCNET Node upgrade instructions

There’s an upgrade coming imminently, if you’re running a node, this is what you will need to do.

  1. If running remotely, ssh into your remote server.
  2. cd xian-stack
  3. Pull the latest changes to xian-stack git pull
  4. Enter the container shell
make core-dev-shell
  1. Stop the node
make down
  1. wipe the node state
make wipe
  1. exit the shell
exit
  1. Take down the docker containers & wipe the BDS db (if applicable)
make core-dev-down
make wipe-bds
  1. Pull the latest changes & copy the new genesis to .cometbft
make checkout CONTRACTING_BRANCH=rcnet CORE_BRANCH=rcnet
cp ./xian-core/src/xian/tools/genesis/genesis-rcnet.json ./.cometbft/config/genesis.json
  1. Build the the appropriate docker containers & put up the node
# a) For a validator
make core-build
make core-shell

# b) For a bds-node
make core-bds-build
make core-bds-shell

# c) For a node in dev-mode
make core-dev-build
make core-dev-shell
  1. Start the node software
# for bds:
make up-bds
# else : 
make up
  1. Check the logs to make sure it worked :
pm2 logs