Steps for Upgrading Bor on Mumbai Testnet Nodes
-
Stop the bor service
sudo service bor stop
-
Navigate to bor directory
cd ~/bor
-
Fetch the latest changes and use Bor v0.2.12-beta1:
git fetch git checkout v0.2.12-beta1
-
Build latest changes
make bor-all
-
Go back to the home directory
cd ~
-
Download the latest genesis file. We are upgrading the genesis contract through changed genesis.
curl https://raw.githubusercontent.com/maticnetwork/launch/f40b34dcaf4439df1d64a8fcf76873acc62d53c0/testnet-v4/sentry/sentry/bor/genesis.json --output ~/genesis.json
-
Init bor with genesis file
bor --datadir ~/.bor/data init ~/genesis.json
If you are using a non-default
datadir
, please ensure you input the correct one you have been using. -
You should see the output as follows:
... ... INFO [12-03|19:57:02.531] Successfully wrote genesis state database=chaindata hash=... ... INFO [12-03|19:57:02.556] Successfully wrote genesis state database=lightchaindata hash=... ... ...
-
Start the bor service
sudo service bor start