V0.2.12-beta3 Upgrade for Bor Mainnet

Steps for Upgrading Mainnet Nodes

  1. Stop the bor service

    sudo service bor stop
  2. Navigate to bor directory

    cd ~/bor
  3. Fetch the latest changes and use Bor v0.2.12-beta3:

    git fetch
    git checkout v0.2.12-beta3
  4. Build latest changes

    make bor-all
  5. Go back to the home directory

    cd ~ 
  6. 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
  7. 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.

  8. 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=...
  9. Start the bor service

    sudo service bor start