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

7549 - VC aggregation #8300

Merged
merged 7 commits into from
May 8, 2024
Merged

7549 - VC aggregation #8300

merged 7 commits into from
May 8, 2024

Conversation

tbenr
Copy link
Contributor

@tbenr tbenr commented May 8, 2024

  • changes ValidatorApiChannel::createAggregate by adding an optional committeeIndex to allow BN to know about committee to aggregate for. (Implemented only for in-process VC)
  • changes aggregation iteration (MatchingDataAttestationGroup) to apply the committee filtering if required.
  • enables several test to run over ELECTRA too

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.

@@ -170,7 +170,7 @@ private String formatBlockRoots(final Set<Bytes32> blockRoots) {
return blockRoots.stream().map(LogFormatter::formatHashRoot).collect(Collectors.joining(", "));
}

public void aggregationSkipped(final UInt64 slot, final int committeeIndex) {
public void aggregationSkipped(final UInt64 slot, final UInt64 committeeIndex) {
Copy link
Contributor

Choose a reason for hiding this comment

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

we only see this used in test code in this PR which is curious... if its only testing code we should probably move it, and Im less concerned with the interface change, otherwise i think committeeIndex would have been better to stay as int :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had a back and forth among int<->UInt64. I landed there just to maintain similarity to validatorIndex.
And i also saw some UInt64 related to committteeIndex in some API params.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

why you say it is only used in testing? I see this :)

Copy link
Contributor

Choose a reason for hiding this comment

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

weird that interface changes and calling point doesnt...

Copy link
Contributor

@rolfyone rolfyone left a comment

Choose a reason for hiding this comment

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

LGTM, one nit about something only used in testing code

@tbenr tbenr enabled auto-merge (squash) May 8, 2024 22:31
@tbenr tbenr merged commit 1991869 into Consensys:master May 8, 2024
15 of 16 checks passed
@tbenr tbenr deleted the 7549-VC-aggregation branch May 8, 2024 22:33
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.

2 participants