AERGO has been updated to 2.3.0

https://github.com/aergoio/aergo/releases/tag/v2.3.0

Breaking Changes

  • Update BadgerDB to v3 (previously v1.6) to resolve long boot time (over 1 hour on a typical 4 core machine).

Data Migration

The old data is not compatible with this version. For correct operation, the state and chain subdirectories in the Aergo data dir must be migrated. The procedure is as it follows.

  1. Shutdown Aergo.
  2. Install the badger v1.6.
$ go get github.com/dgraph-io/badger/v1.6
  1. Perform backup for each DB diretory.
$ badger backup --dir <state or chain> -f <backup file>
  1. Install the badger v3
$ go get github.com/dgraph-io/badger/v3
  1. Restore each data directory (for safety, don’t forget to rename the old directories).
$ badger restore --dir <chain or state> -f <backup files>
  1. Now, you can boot Aergo from the migrated data.

Please notice two different versions of badger are used for backup (v1.6) and restore (v3).

Bug Fixes

  • Revert the commit 32a8a4b, which may cause blockchain fork between a block producer and all the other nodes.