After successful rollout of EIP1559 on Mumbai Testnet (http://forum.polygon.technology/t/eip1559-implementation-on-mumbai-testnet/399) last month, we now have a block number for London Hardfork on Mainnet.
We will hit the London Block where the EIP1559 and related EIPs will be activated on the Mainnet around 8AM UTC on Jan 18th 2022: https://polygonscan.com/block/countdown/23850000
Since this is a hardfork, a genesis update will be required. Please follow the steps below to ensure your Mainnet nodes continue to sync after the London Block.
Steps for Upgrading Bor on 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.13:
git fetch git fetch --tags git checkout v0.2.13
-
Build latest changes
make bor-all
-
Ensure that bor binary is updated to version
v0.2.13-stable
bor version #Should return something like: Bor Version: 0.2.13-stable Git Commit: 159651242bf6de65a39496d56c059f8a3bdeabcb Architecture: amd64 Go Version: go1.17 Operating System: linux ... ...
-
Download the latest genesis file. We are activating the fork and burn contract address through the updated genesis.
curl https://raw.githubusercontent.com/maticnetwork/launch/master/mainnet-v1/sentry/validator/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-10|19:57:02.531] Successfully wrote genesis state database=chaindata hash=... ... INFO [12-10|19:57:02.556] Successfully wrote genesis state database=lightchaindata hash=... ... ...
-
Start the bor service
sudo service bor start
-
Verify that london block is showing up in the logs at 23,850,000:
journalctl -u bor --since today | grep -i london # You should see output similar to: Jan 11 10:44:53 mainnet-sentry bash[2668]: INFO [01-11|10:44:53.512] Initialised chain configuration config="{ChainID: 137 Homestead: 0 DAO: <nil> DAOSupport: false EIP150: 0 EIP155: 0 EIP158: 0 Byzantium: 0 Constantinople: 0 Petersburg: 0 Istanbul: 3395000, Muir Glacier: 3395000, Berlin: 14750000, London: 23850000, Engine: bor}"
Please ensure you upgrade bor on all your Mainnet nodes before 17th Jan 2022.