Bor v2.0.0 release

Hello All,

New version of Bor v2.0.0 have been released for Polygon Amoy and Mainnet.

v2.0.0 is a new release with a breaking change in default storage scheme (see below) and a few bug fixes and improvements.

Breaking change

v2.0.0 changed its default storage scheme to path-based storage scheme (PBSS) and default db engine to pebble db. Hence, it is incompatible with nodes that was using hash-based storage scheme (HBSS). In order for nodes that have been using HBSS continue to run, the flag state.scheme should be manually set to hash in the cli, or "state.scheme" = "hash" in config.toml.
Same applies for db engine. If the node was using leveldb, in order for nodes to continue to use leveldb, the flag db.engine should be manually set to leveldb in the cli, or "db.engine" = "leveldb" in config.toml.

Steps for upgrading Bor node

  1. Stop bor service

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

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

    /usr/bin/bor version
    
    # It should print 
    # v2.0.0
    
  4. Restart bor service

    sudo service bor start
    

What’s Changed

New Contributors

Full Changelog: v1.5.5…v2.0.0

1 Like