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

Part 9 of proto array fork choice - get head #4643

Merged
merged 3 commits into from Jan 24, 2020

Conversation

terencechain
Copy link
Member

This PR implements the head function. Simple enough it returns the head root with O(1) look up. By passing in justified index, it looks up the justified node, and returns justified node's best descendant which is the head. Also added tests to go with this

@terencechain terencechain added Ready For Review A pull request ready for code review Forkchoice labels Jan 24, 2020
@terencechain terencechain self-assigned this Jan 24, 2020
@terencechain terencechain merged commit b313b46 into master Jan 24, 2020
@delete-merged-branch delete-merged-branch bot deleted the proto-array-forkchoice-10 branch January 24, 2020 18:15
cryptomental pushed a commit to cryptomental/prysm that referenced this pull request Feb 24, 2020
cryptomental pushed a commit to cryptomental/prysm that referenced this pull request Feb 28, 2020
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.

None yet

2 participants