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

filter viable branches in fork choice #1495

Merged
merged 9 commits into from
Dec 8, 2019
Merged

filter viable branches in fork choice #1495

merged 9 commits into from
Dec 8, 2019

Conversation

djrtwo
Copy link
Contributor

@djrtwo djrtwo commented Nov 25, 2019

Filter for branches that see latest finalized/justified info as correct on-chain before running get_head.

more info here https://notes.ethereum.org/Fj-gVkOSTpOyUx-zkWjuwg?view

specs/core/0_fork-choice.md Outdated Show resolved Hide resolved
specs/core/0_fork-choice.md Outdated Show resolved Hide resolved
djrtwo and others added 2 commits November 27, 2019 13:11
Co-Authored-By: Diederik Loerakker <proto@protolambda.com>
@djrtwo djrtwo changed the title [WIP] filter viable branches in fork choice filter viable branches in fork choice Dec 4, 2019
@protolambda
Copy link
Collaborator

Do we merge rm-signing-root first? If so, we should change the signing-roots here to hash-tree-root.

Copy link
Collaborator

@protolambda protolambda left a comment

Choose a reason for hiding this comment

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

Small style adjustment, avoid a full state copy.
Also verified that with the unfiltered tree the test fails. But looking forward to more integration-like fork choice tests, unit-testing looks like a poor fit for fork-choice.
Let's update with signing root changes, then merge 👍

@hwwhww
Copy link
Contributor

hwwhww commented Dec 6, 2019

@djrtwo I think you should change the target branch to v09x?

@djrtwo djrtwo changed the base branch from master to v09x December 8, 2019 18:50
@djrtwo
Copy link
Contributor Author

djrtwo commented Dec 8, 2019

yep nice catch @hwwhww !

Co-Authored-By: Hsiao-Wei Wang <hwwang156@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants