This release contains changes for updating block time and wiggle time in Mumbai Testnet to 5 sec. The feature was built in one of the previous releases and now we will be experimenting with increased block time in the Testnet. The change will take effect from block no https://mumbai.polygonscan.com/block/countdown/25275000 that will be mined around 3PM IST on 25th Feb 2022. Please note that this is a hard fork so you will be need to upgrade your nodes before the block kicks in.
The Polygon PoS mainnet has had a ~2 second block time since genesis. But recently due to increase in state size, block verification times have risen. This has necessitated in a need to experiment with
- increased block times
- increased wiggle time
to mitigate these issues. This upgrade on the testnet is part of the experiments which the team is undertaking to analyse the issue.
Steps for Upgrading Mumbai Nodes
-
Stop the bor service
sudo service bor stop
-
Navigate to bor directory
cd ~/bor
-
Fetch the latest changes and use Bor v0.2.15-beta2:
git fetch git checkout v0.2.15-beta2
-
Build latest changes
make bor-all
-
Check bor version
ubuntu@ip-20-0-1-195:~/bor$ bor version Bor Version: 0.2.15-beta-2 Git Commit: 111a204bbaa0d6b1e94fa58a56c00dab8adc1652
-
Go back to the home directory
cd ~
-
Download the latest genesis file which has the changes in the block time and wiggle time
curl https://raw.githubusercontent.com/maticnetwork/launch/87c417decfe8a1c981b5f6733497d984dd4acc52/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
-
Check for bor logs if everything is working fine
journalctl -u bor -f
Let us know if you have any questions.
Thank you.