cardano-db-sync icon indicating copy to clipboard operation
cardano-db-sync copied to clipboard

DB-Sync Incorrectly recording governance protocol parameters

Open Ryun1 opened this issue 1 year ago • 3 comments

Network

  • SanchoNet

Versions

  • Cardano node - 9.0.0
  • Db-sync - sancho-5.1.0

Build/Install Method The method you use to build or install cardano-db-sync:

  • docker image

Run method The method you used to run cardano-db-sync (eg Nix/Docker/systemd/none):

  • docker

Additional context

Problem Report

  • GovTool queries DBSync current protocol parameter data via the epoch_param table and this query.
  • Prior to the upgrade to Node 9.0.0 and DBSync sancho-5-1-0, this query would result in the correct current protocol parameters
  • Now, some of these parameters are incorrect, it seems like it is governance related parameters which are reported as 0 instead of their correct value.
  • For example "drep_activity": 0, "drep_deposit": 0, but when these parameters are checked via my local node the results are "dRepActivity": 20, "dRepDeposit": 500000000,.
    • This is further confirmed by the behaviour experienced when trying to register as a DRep via GovTool issue #1591.

Ryun1 avatar Jul 18 '24 22:07 Ryun1

Chances are you haven't used "EnableFutureGenesis" : true, in your DBSync config file which 5.1.0 still requires. Note that 13.3.0.0 release and future releases will have this true by default.

kderme avatar Jul 19 '24 10:07 kderme

Ok, I've checked and we don't have that flag in our config. We will check it once again after applying this and come back to you as soon as we have more details

MSzalowski avatar Jul 19 '24 12:07 MSzalowski

@kderme Providing config to the binary works as intended, but for the docker image it seems like providing any config takes no effect. We followed this docs of taking control over the db-sync configuration but without success - on the service some default config file was used in execution instead of the one that was passed.

MSzalowski avatar Jul 23 '24 09:07 MSzalowski

With 13.4.0.0 it's now easier to provide the correct config with docker, so this can close.

kderme avatar Aug 08 '24 21:08 kderme