-
Notifications
You must be signed in to change notification settings - Fork 250
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
Add publishAggregateAndProofsV2 #6546
Conversation
|
||
var proofs: seq[Future[SendResult]] | ||
template addDecodedProofs(ProofType: untyped) = | ||
let dres = decodeBody(seq[ProofType], contentBody.get()) |
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.
Should use 2 space indentation instead of 4 for template
body
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.
Addressing these in #6548
let dres = decodeBody(seq[ProofType], contentBody.get()) | ||
if dres.isErr(): | ||
return RestApiResponse.jsonError(Http400, | ||
InvalidAggregateAndProofObjectError, |
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.
Probably more consistent to indent InvalidAggregateAndProofObjectError
and $dres.error()
with Http400,
rather than (Http400,
, i.e. one space more. it's what you do later in the same function (AggregateAndProofValidationError
) at least, and what most of this module uses.
https://github.com/status-im/nimbus-eth2/actions/runs/10853866443/job/30123076903?pr=6546 from
probably unrelated to this PR |
Added new endpoint version(v2) for validator aggregate and proof.
spec: ethereum/beacon-APIs/pull/456