fix: only fetch active proposal delegate votes#79
Merged
Conversation
Delegates can only cast votes while a proposal is Active, so the vote set cannot change in any other state. Gate the live RPC delta fetch on the proposal's current state being Active, instead of the previous "not finalized" check that also fetched during Pending and Unknown. Thread the live proposal state from VoteModel through ProposalDelegateVotes into useProposalDelegateVotes, and drop the redundant proposal-index-entry query that only existed to supply that state. The live state is more accurate and also covers brand-new proposals not yet in the index. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Backfilled the complete vote set for the executed "Continued Funding for the Arbitrum Foundation" treasury proposal into the SQLite snapshot. Its votes postdated the previous build watermark, so they were absent and the Voters tab showed nothing now that finalized proposals no longer fetch a live delta. Bump DEFAULT_DB_SIZE_BYTES to the rebuilt database size so clients invalidate cached byte ranges and load the refreshed snapshot. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Backfilled the complete vote set for the executed "[Constitutional] AIP: Amended Release of Frozen ETH Pursuant to Court Order" Core governor proposal into the SQLite snapshot. Its votes postdated the previous build watermark, so they were absent and the Voters tab showed nothing now that finalized proposals no longer fetch a live delta. Bump DEFAULT_DB_SIZE_BYTES to the rebuilt database size so clients invalidate cached byte ranges and load the refreshed snapshot. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
also update vote snapshots for past proposals