V0.2.15-beta2 Upgrade for Bor

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

  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.15-beta2:

    git fetch
    git checkout v0.2.15-beta2
  4. Build latest changes

    make bor-all
  5. Check bor version

    [email protected]:~/bor$ bor version
    Version: 0.2.15-beta-2
    Git Commit: 111a204bbaa0d6b1e94fa58a56c00dab8adc1652
  6. Go back to the home directory

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

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

    sudo service bor start
  11. Check for bor logs if everything is working fine

    journalctl -u bor -f

Let us know if you have any questions.

Thank you.

1 Like

Due to the increase of block verification time, average time for getting transactions mined are now likely 17~20 secs on mainnet when the gas price is 80 Gwei.
I would like to know how increasing the block interval time affects to the block verification time.
The block verification time was like 3~4 secs in the past (a few months ago) but it seems taking more than 4 times nowadays.
Can these updates reduce the verification time as it was a few months ago? @delroy