Skip to content

only_utxo preset populates governance tables - intended, or doc/preset mismatch? #2151

Description

@ArturWieczorek

Question

doc/configuration.md describes the only_utxo preset as loading only block, tx, tx_out and ma_tx_out. But the preset enables governance, so a sync with preset: only_utxo populates the governance tables. Which side is correct?

Observed

db-sync 13.7.2.1, preview, insert_options: { preset: only_utxo }:

drep_registration   | 22992
voting_anchor       | 16881
gov_action_proposal | 1496
voting_procedure    | 4950

Source

onlyUTxOInsertOptions (Cardano/DbSync/Config/Types.hs) sets:

sioGovernance = GovernanceConfig True

Git history: this was GovernanceConfig False until commit fda0c89 ("Add offchain_vote_data config flag, default disabled for pools and votes"), which flipped it to True. That commit is about a different flag, and the flip has no CHANGELOG entry, no doc update, and no test asserting it, so it is not clear whether it was intentional.

Resolution

Either:

  1. Governance should be off for only_utxo: set sioGovernance = GovernanceConfig False.
  2. Governance is intended to be on: update doc/configuration.md, which is wrong about more than governance (the preset also enables multi_asset, and the rewards/epoch flags), so the "only block, tx, tx_out, ma_tx_out" line needs a rewrite either way.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions