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 canonical flag to ListBlocks API response #8287

Conversation

pinglamb
Copy link
Contributor

What type of PR is this?

Feature

What does this PR do? Why is it needed?

Adding canonical flag to /eth/v1alpha1/beacon/blocks so client can identify if the block is orphaned.

Which issues(s) does this PR fix?

Fixes #8064

Other notes for review

@pinglamb pinglamb requested a review from a team as a code owner January 19, 2021 10:17
@pinglamb pinglamb force-pushed the feature-add-canonical-to-blocks-api branch 2 times, most recently from 49ef829 to f851bb1 Compare January 19, 2021 10:21
@pinglamb
Copy link
Contributor Author

@rkapka I updated the ListPeers and added PeersCount to follow the changes you made here: prysmaticlabs/ethereumapis@c595a4e

@codecov
Copy link

codecov bot commented Jan 19, 2021

Codecov Report

❗ No coverage uploaded for pull request base (develop@f5f1284). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             develop    #8287   +/-   ##
==========================================
  Coverage           ?   57.01%           
==========================================
  Files              ?      448           
  Lines              ?    31348           
  Branches           ?        0           
==========================================
  Hits               ?    17874           
  Misses             ?    10688           
  Partials           ?     2786           

@pinglamb
Copy link
Contributor Author

This PR should be merged after #8288

@pinglamb pinglamb force-pushed the feature-add-canonical-to-blocks-api branch from 229de91 to d5d8428 Compare January 19, 2021 19:50
prestonvanloon
prestonvanloon previously approved these changes Jan 19, 2021
@rauljordan
Copy link
Contributor

Hi @pinglamb looks like some conflicts in go.mod, should be easy to fix but will likely require you to run go mod tidy afterwards

@pinglamb pinglamb force-pushed the feature-add-canonical-to-blocks-api branch 3 times, most recently from f3dada5 to 8607398 Compare January 22, 2021 10:38
rauljordan
rauljordan previously approved these changes Jan 25, 2021
@rauljordan rauljordan added OK to merge Ready For Review A pull request ready for code review labels Jan 25, 2021
@rauljordan
Copy link
Contributor

Some conflicts @pinglamb

@pinglamb
Copy link
Contributor Author

@rauljordan The ethereumapis deps in develop already points to a newer version, this needs to be merged to reflect the spec changes.

@prylabs-bulldozer prylabs-bulldozer bot merged commit 82426ab into prysmaticlabs:develop Feb 1, 2021
@pinglamb pinglamb deleted the feature-add-canonical-to-blocks-api branch February 1, 2021 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API returns block data for orphaned slots in finalized epochs
4 participants