Skip to content

GET /governance/proposals/{tx_hash}/{cert_index}/votes should indicate whether each vote is currently counted #466

Description

@errfrom

Reference: https://docs.blockfrost.io/#tag/cardano--governance/GET/governance/proposals/{tx_hash}/{cert_index}/votes

The endpoint returns every vote-cast transaction ever submitted for the proposal, but not all of these votes still count toward ratification. A vote can be dropped from the ledger's votes map in two cases:

  1. The voter cast another vote on the same proposal afterwards, so only the latest vote is kept (upsert semantics)
  2. A DRep voter deregistered

Because of this, results from this endpoint can diverge significantly from queryLedgerState/governanceProposals in Ogmios (which reflects the current ledger state). For one Preprod proposal (gov_action10z564l3wfc2g9rh63n2jqtlvpryed2dqp374dvchk6544qz3pkesq7cqrfs) we observed ~100 votes via Blockfrost but only 3 via Ogmios.

Request: add a boolean field (e.g. active) to each vote entry indicating whether the vote is still counted in the ledger's current vote state for the proposal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions