Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexedDB: implement LqtVotingNotes IDB table #2025

Open
Tracked by #2022
TalDerei opened this issue Feb 6, 2025 · 1 comment
Open
Tracked by #2022

IndexedDB: implement LqtVotingNotes IDB table #2025

TalDerei opened this issue Feb 6, 2025 · 1 comment
Labels
idb idb access, schema, or interface LQT

Comments

@TalDerei
Copy link
Contributor

TalDerei commented Feb 6, 2025

LqtVotingNotes:

  • We want to track which notes can be voted with for the current LQT
  • We have two levers:
    • Querying the nullifier set for the LQT at the current epoch for each of our notes
    • Indexing delegation notes by epoch and filtering for all those notes that originate in epoch - 1
    • The table must update when:
      • We vote
      • We spend the delegation note (e.g, to roll it over)
@TalDerei TalDerei added idb idb access, schema, or interface LQT labels Feb 6, 2025
@TalDerei
Copy link
Contributor Author

TalDerei commented Feb 9, 2025

note for prosperity; I think the table may be extraneous. we already have an existing IndexedDB storage method getNotesForVoting which iterates over the SNR set and retrieves eligible delegation notes. We should instead have a facility in the block processor that detects LQT voting notes and saves them in a dedicated table.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idb idb access, schema, or interface LQT
Projects
None yet
Development

No branches or pull requests

1 participant