Steps for Upgrading Mainnet 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-beta3:
git fetch git checkout v0.2.12-beta3 -
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/ea7ef12751291f7331b383506e5a714703f37362/mainnet-v1/sentry/sentry/bor/genesis.json --output ~/genesis.json -
Init bor with genesis file
bor --datadir ~/.bor/data init ~/genesis.jsonIf 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