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

feat: beacon api block headers #645

Closed
wants to merge 5 commits into from

Conversation

h3lio5
Copy link
Contributor

@h3lio5 h3lio5 commented Jan 17, 2024

Motivation

Implements the block header related endpoints of the Beacon API.

Closes #561

@h3lio5 h3lio5 changed the title Beacon api block headers feat: beacon api block headers Jan 17, 2024
@h3lio5 h3lio5 requested review from MegaRedHand and Arkenan January 17, 2024 14:24
Comment on lines +113 to +114
@spec get_block_headers(Plug.Conn.t(), any) :: Plug.Conn.t()
def get_block_headers(conn, %{"slot" => slot, "parent_root" => parent_root} = _params) do
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this function isn't used anywhere 🤔

proposer_index: signed_block.message.proposer_index,
parent_root: signed_block.message.parent_root,
state_root: signed_block.message.state_root,
body_root: root
Copy link
Collaborator

Choose a reason for hiding this comment

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

The body root should be the root of the block's body, not the whole block's

@mpaulucci mpaulucci mentioned this pull request Jan 29, 2024
2 tasks
@mpaulucci
Copy link
Collaborator

Closing but adding a reference to the ticket.

@mpaulucci mpaulucci closed this Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

GET /headers
3 participants