Bor v1.3.3 Release for Mainnet and Amoy

Hello All,

New version of Bor v1.3.3 have been released for both Polygon Mainnet and Polygon Amoy. Please upgrade your mainnet and amoy nodes to this version.

Bor v1.3.3 introduces PIP-32 - Ability to prune ancient block data along with a few bug fixes and observability improvements.

Ancient block pruning

This version of bor enables node operators to prune the ancient/historical block data if required. Note that this is different from state pruning, which prunes unused/inactive state from the db. The aim is to remove historical block data (headers, body, and receipts) from the freezer database as they are no longer used for chain verification. This also means that your node will no longer be able to serve RPC queries for those blocks (RPC operators shouldn’t ideally use this).

It is available as a sub-command bor snapshot prune-block [options...] and the number of blocks to keep (post pruning) is configurable via block-amount-reserved flag. More details and usage info can be found in the PR itself (https://github.com/maticnetwork/bor/pull/1216).

Important points to note:

  • This version is backwards in-compatible if pruning is performed (at least once) on the node.
  • This feature is only enabled in hash based storage scheme for now and won’t work for path based scheme.

Huge shout-out to @jsvisa who initiated the efforts and did most of the implementation in bor.

Steps for upgrading Bor node

  1. Stop bor service

    sudo service bor stop
    
  2. Install Bor with a version tag, network name (mainnet/amoy), and node type (sentry, validator, or archive).

    # Replace the node type
    curl -L https://raw.githubusercontent.com/maticnetwork/install/main/bor.sh | bash -s -- v1.3.3 <network> <node_type>
    
  3. Check bor version

    /usr/bin/bor version 
    
    Version: 1.3.3
    GitCommit: 625774fa781a5b07e9c867a7d5cf9ca9a474d449
    
  4. Restart bor service

    sudo service bor start
    

Bor Changelog

Bug fixes

Observability / P2P

Misc

New Contributors

Full Changelog: https://github.com/maticnetwork/bor/compare/v1.3.2...v1.3.3

Docker Images

You can find the latest docker images here:

Bor: https://hub.docker.com/r/0xpolygon/bor/tags

Heimdall:https://hub.docker.com/r/0xpolygon/heimdall/tags

Thanks,

Polygon Team

5 Likes

Thanks !:pray: I really appreciate the writing of this, it’s really clear to me now.

nice work!! I really appreciate the writing of this, thank you all!