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

Clear single-vote attestations from pool when aggregate is full #6116

Open
arnetheduck opened this issue Mar 21, 2024 · 0 comments
Open

Clear single-vote attestations from pool when aggregate is full #6116

arnetheduck opened this issue Mar 21, 2024 · 0 comments

Comments

@arnetheduck
Copy link
Member

We currently store both single-vote attestations and aggregates in the attestation pool - the former are used to "top up" the latter - ie when an incomplete aggregate arrives on the aggregate channel, we use singles to fill in any gaps.

Once an aggregate is "full", ie all attesters are represented, we could drop the singles because there can be no better aggregate constructed any more.

Given that attestations are stored for 2 epochs with signatures and all, they contribute significantly to memory usage - this is a simple way to reduce this footprint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant