This release contains RLP encoding of an additional field,
baseFee in the block header. Geth had added this in the Clique consensus changes for EIP1559 but we had missed to add this in bor. A shoutout to Nebojsa Urosevic from Tenderly Team for reporting this. The impact is mainly on downstream applications as the client libs might have a problem with the coinbase value.
Since there is a change in the block seal hash, this requires a hard fork at the Jaipur Block at block 22,770,000 that will be reached around 3PM IST on 17th Dec 2021 https://mumbai.polygonscan.com/block/countdown/22770000
You will have to upgrade bor on Mumbai Testnet nodes, download and init the latest genesis before this time.
Please note that this is applicable only for Mumbai Testnet. Please do not upgrade bor on mainnet, it remains at
v0.2.12 for mainnet.
- Stop the bor service
sudo service bor stop
- Navigate to bor directory
- Fetch the latest changes and use Bor v0.2.13-beta2:
git fetch git checkout v0.2.13-beta2
- Build latest changes
- 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/c2b7ab4df1f11b2f06a2ad027ffe4a1c8ed09e5f/testnet-v4/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
In London Fork, with the inclusion of EIP1559, every block has an associated baseFee. There is a method called
CliqueRLP in consensus which returns the rlp bytes which needs to be signed for the sealing. The RLP to sign consists of the entire header apart from the 65 byte signature contained at the end of the extra data. Post London Fork, it should also consist of
baseFee that was included in clique but that was missed out in bor consensus and has been added in this release.
Github Release: https://github.com/maticnetwork/bor/releases/tag/v0.2.13-beta2