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

Add publishAggregateAndProofsV2 #6546

Merged
merged 3 commits into from
Sep 13, 2024
Merged

Conversation

pedromiguelmiranda
Copy link
Contributor

Added new endpoint version(v2) for validator aggregate and proof.
spec: ethereum/beacon-APIs/pull/456

Copy link

github-actions bot commented Sep 12, 2024

Unit Test Results

         9 files  ±0    1 346 suites  ±0   48m 50s ⏱️ + 2m 15s
  5 142 tests ±0    4 794 ✔️ ±0  348 💤 ±0  0 ±0 
21 198 runs  ±0  20 794 ✔️ ±0  404 💤 ±0  0 ±0 

Results for commit e48df14. ± Comparison against base commit f53b621.

♻️ This comment has been updated with latest results.


var proofs: seq[Future[SendResult]]
template addDecodedProofs(ProofType: untyped) =
let dres = decodeBody(seq[ProofType], contentBody.get())
Copy link
Contributor

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

Copy link
Contributor

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,
Copy link
Contributor

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.

@tersec
Copy link
Contributor

tersec commented Sep 13, 2024

https://github.com/status-im/nimbus-eth2/actions/runs/10853866443/job/30123076903?pr=6546 from CI / linux-amd64 (Nim version-2-0) (pull_request) is failing on:

2024-09-13T18:05:58.0116534Z /github-runner/workspace/nimbus-eth2/nimbus-eth2/beacon_chain/libnimbus_lc/libnimbus_lc.nim(1465, 11) Error: type mismatch: got 'uint64' for '0'u' but expected 'Quantity = distinct uint64'

probably unrelated to this PR

@tersec
Copy link
Contributor

tersec commented Sep 13, 2024

nim-lang/Nim#24104

@tersec tersec merged commit 7b6caeb into unstable Sep 13, 2024
11 of 12 checks passed
@tersec tersec deleted the dev/pedro/agg_and_proofs_v2 branch September 13, 2024 21:11
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