Tutorial: How to Upgrade a Node

Problem: Need to run a full node to send txn.

Current state: Old node sw installed a while ago. Synced to block around 2k

  1. Update the code
cd ~/nockchain
git fetch && git pull
make install-nockchain install-nockchain-wallet
  1. Install state jam

Download latest jam from: State Jams - Google Drive

Save it to ~/nockchain/16455.jam

Install .jam

cd ~/nockchain
nockchain --state-jam ~/nockchain/16455.jam

Wait for your node to sync to tip.

Once at tip, you will see logs:

accept-block: block 9mGek...BB6n4 added to validated blocks at 18413 with proof version 2
update-heaviest: Checking if block 9mGek...BB6n4 is heaviest
update-heaviest: Block 9mGek...xBB6n4 is new heaviest block
accept-block: New heaviest block!

This means you are synced to block 18413

CTRL+ C and WAIT, be patient and let it stop! It may take a few minutes.

  1. Run node
cd ~/nockchain
rm -rf .socket/
./scripts/run_nockchain_node.sh

Congrats! Your node is now running latest updates!

1 Like