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

Provide committeesSize to MatchingDataAttestationGroup #8304

Closed

Conversation

StefanBratanov
Copy link
Contributor

PR Description

  • committeesSize is required for EIP-7549 aggregations when adding attestations coming from an imported block to track the attestations which are already onchain, so adding a way to retrieve it using the state
  • Also there could be cases when committeesSize is not present in a ValidatableAttestation, so having a fallback to the state ensures we don't fail.

Fixed Issue(s)

related to #7965

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

public MatchingDataAttestationGroup(
final Spec spec,
final AttestationData attestationData,
@SuppressWarnings("unused") final Supplier<Int2IntMap> commiteesSizeSupplier) {

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'commiteesSizeSupplier' is never used.
recentChainData
.retrieveStateAtSlot(slotAndBlockRoot)
// the attestation pool flow is entirely synchronous so joining here
.join()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eep here be dragons...

@tbenr
Copy link
Contributor

tbenr commented May 13, 2024

merged via #8305

@tbenr tbenr closed this May 13, 2024
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

Successfully merging this pull request may close these issues.

3 participants