Skip to content

November 2021 Conseil Release

Compare
Choose a tag to compare
@vishakh vishakh released this 29 Nov 16:06
· 64 commits to master since this release
3202605

This is a major release with several new features and includes breaking changes to both the config file format and the database schema.

Changes

Handling breaking changes to the config file format

According to the existing config file format, Conseil expected details of only one database, e.g.:

conseil {
 hostname: "0.0.0.0"
 port: 1337

 db {
  dataSourceClass = "org.postgresql.ds.PGSimpleDataSource"
  properties {
    # Replace the below lines with details of your database configured with the Conseil database schema
    user = "myuser"
    password = "mypassword"
    url = "jdbc:postgresql://localhost:5432/conseil"
  }
  numThreads = 20
  maxConnections = 20
}

lorre.db = ${conseil.db}

Now we have one database per network in the config file, e.g.:

platforms: [
  {
    name: "tezos"
    network: "mainnet"
    enabled: true
    node: {
        #Replace the below entries with the address of your Tezos node
        protocol: "http",
        hostname: "127.0.0.1",
        port: 8732
        path-prefix: ""
    }
      db {
        dataSourceClass = "org.postgresql.ds.PGSimpleDataSource"
        properties {
          # Replace the below lines with details of your database configured with the Conseil database schema
          user = "myuser"
          password = "mypassword"
          url = "jdbc:postgresql://localhost:5432/conseil"
        }
        numThreads = 20
        maxConnections = 20
      }
  }
]

See https://github.com/Cryptonomic/Conseil/wiki/Configuring-Conseil for a full spec of the latest config file format.

Handling breaking changes to the database

There is now a big_maps_contents_history table. In addition, we have added new columns to other tables to support additional fork handling behaviors. Finally, there are new tables for in-flight changes which aren't officially released yet, e.g. TZIP-16 metadata support.

As such, existing Conseil databases are not compatible with the new release. You may create a new database using the latest schema and re-sync the whole chain from scratch yourself or download our snapshot from AWS S3 (Postgres custom format).