-
Notifications
You must be signed in to change notification settings - Fork 290
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
implement POST /eth/v1/validator/sync_committee_subscriptions
for altair
#3918
Conversation
…ltair fixes Consensys#3907 Signed-off-by: Paul Harris <[email protected]>
Signed-off-by: Paul Harris <[email protected]>
Signed-off-by: Paul Harris <[email protected]>
…plemented. Signed-off-by: Paul Harris <[email protected]>
Signed-off-by: Paul Harris <[email protected]>
Signed-off-by: Paul Harris <[email protected]>
Signed-off-by: Paul Harris <[email protected]>
Signed-off-by: Paul Harris <[email protected]>
public static SyncCommitteeSubnetSubscription create( | ||
tech.pegasys.teku.api.schema.altair.SyncCommitteeSubnetSubscription schemaSubscription) { | ||
return new SyncCommitteeSubnetSubscription( | ||
schemaSubscription.validatorIndex.intValue(), | ||
schemaSubscription.syncCommitteeIndices.stream() | ||
.map(UInt64::intValue) | ||
.collect(Collectors.toList()), | ||
schemaSubscription.untilEpoch); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not real keen on the REST API objects bleeding into the internal objects like this. Previously we've had a .toInternal()
on the API object so it could go the other way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the thing is the validator objects go both ways and this is way simpler than the resulting code if we don't do it. but i guess i'll change it.
Signed-off-by: Paul Harris <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
fixes #3907
Signed-off-by: Paul Harris [email protected]
Documentation
documentation
label to this PR if updates are required.Changelog