Skip to content

Cardano DB Sync 6.0.0

Compare
Choose a tag to compare
@tatyanavych tatyanavych released this 30 Oct 14:09
3e68f30

The main enhancement in this release is the ability to track the ledger state which enables a number of new features, some in this release and more in future releases. In particular this release adds the tracking of delegation rewards and protocol parameters.

It also includes improvements in handling of the Word64 types, and a few bug fixes. There are numerous changes in the database schema, including breaking changes. Documentation has been updated to reflect ledger state maintenance and other improvements.

As this release has breaking changes, the database has to be dropped and recreated if upgrading.

Deployed to the testnet 29 October 2020.

Compatible with Cardano Node 1.21.1.

Added

  • Added maintenance of a copy of the ledger state which contains off chain data #300
  • Added Reward table and populated from ledger state #305
  • Added EpochParam table and populated for Shelley (but not Byron) #317
  • Added EpochStake table and populated with data #319 #324
  • Added stake_address_id column to the tx_out table #359
  • Added the epoch nonce field to the EpochParam table #386
  • Added Bech32 encodings of two more fields; changed type of block.vrf_key #295 #333
  • Added --version option in CLI commands cardano-db-sync and cardano-db-sync-extended #350, #355

Changed

  • Made handling of the Word64 types in the database more robust #334, #351, #335, #352
  • Improved the way protocol version is stored in the database #368, #374
  • Reorganised configuration: it now reads the node's configuration file #321, #308, #328, #329
  • Documentation has been updated to reflect ledger state maintenance and other improvements #382, #367

Breaking changes ⚠️

  • Numerous changes in the database schema
  • Renamed config/pgpass to config/pgpass-mainnet
  • Renamed ParamUpdate table to ParamProposal

Removed

  • Removed registeredTxId uniqueness constraint on StakeAddress #332

Resolved

  • Wrong reward_addr_id in the pool_update table #326, #332
  • The reward and withdrawal tables have different addr_id for the same stake_address.view #327, #332
  • Fixed uniqueness constraint for PoolRetire table #306 #315
  • Fixed incorrect hash for SlotLeader #349, #356
  • Fixed pool_id column in reward table #361, #364
  • Fixed EpochNo column of EpochStake table #379, #381

Known issues

  • Unhandled DCertGenesis certificate #290
  • Epochs with no transactions list 0 blocks #296 (this does not occur in the mainnet)
  • Git revision UNKNOWN when checking db-sync version #392

Documentation

Cardano DB Sync Overview
Building and Running the Cardano DB Sync Node
Schema Management
Validation
The Plug-in System

Platforms

Sign off

Role Approval
Technical Lead ✔️
QA Engineer ✔️
Ops
Release Manager ✔️