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

Consolidate ValidationQueue and PendingAttestations #1089

Open
HCastano opened this issue Oct 1, 2024 · 0 comments
Open

Consolidate ValidationQueue and PendingAttestations #1089

HCastano opened this issue Oct 1, 2024 · 0 comments

Comments

@HCastano
Copy link
Collaborator

HCastano commented Oct 1, 2024

In #1063 there were some discussions about potentially streamlining the data structures used to
manage attestations.

We manage attestations in two places right now:

  1. In the Staking Extension pallet, through the use of ValidationQueue
  2. In the Attestation pallet, through the use of PendingAttestations and AttestationRequests

We update the ValidationQueue in the Attestation pallet through the use of some
associated types, so it could make sense for us to abstract all that logic out in a
similar fashion.

It would be great it this could let us get rid of those two storage structures as well as
the Attestation pallet's on_initialize hook which is updating them based off the
entried in ValidationQueue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant