Governance indexing: match the x/gov tally - #673
Merged
Merged
Conversation
mismirnov
approved these changes
Oct 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tally
power × weight. Results are truncated only at the end, as inx/gov.BondedValidatorsquery at the block start is shared with x/signal.total_voting_poweris now the bonded stake in utia, the same unit and set as the votes. It was consensus power before.Talliedflag replaces the "only if positive" check.Votes
(proposal, voter)in a block, and novalidator_idfilter.votes_countcounts voters. Option counters count voters who chose the option.\n.Proposals
MsgCancelProposal/cancel_proposal→ newcancelledstatus.AddProposalno longer loses a final status when a vote or deposit for the same proposal comes earlier in the block.GreaterThancompared statuses the wrong way.Migrations
votetable.MsgCancelProposal,cancel_proposal,cancelled.message_typesgrows tobit(122).total_voting_power→ utia. Idempotent: only rows still in consensus power are converted.Notes
total_voting_poweris now ~10⁶× larger (utia). The frontend must drop any scaling.