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

Clean up light client spec #895

Merged
merged 9 commits into from
Apr 18, 2019
Merged

Clean up light client spec #895

merged 9 commits into from
Apr 18, 2019

Conversation

hwwhww
Copy link
Contributor

@hwwhww hwwhww commented Apr 11, 2019

No description provided.

@djrtwo
Copy link
Contributor

djrtwo commented Apr 13, 2019

@hwwhww You have this marked as "Draft". Is there anything else to do before merge?

@hwwhww
Copy link
Contributor Author

hwwhww commented Apr 13, 2019

@djrtwo yessss will add more commits!

@@ -129,21 +133,20 @@ def compute_committee(header: BeaconBlockHeader,
[i for i in earlier_committee if epoch % PERSISTENT_COMMITTEE_PERIOD < get_switchover_epoch(i)] +
[i for i in later_committee if epoch % PERSISTENT_COMMITTEE_PERIOD >= get_switchover_epoch(i)]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@vbuterin
I think they should be:

        [i for i in actual_earlier_committee if epoch % PERSISTENT_COMMITTEE_PERIOD < get_switchover_epoch(i)] +
        [i for i in actual_later_committee if epoch % PERSISTENT_COMMITTEE_PERIOD >= get_switchover_epoch(i)]

?

@hwwhww hwwhww marked this pull request as ready for review April 14, 2019 08:17
Copy link
Contributor

@djrtwo djrtwo left a comment

Choose a reason for hiding this comment

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

one minor comment, otherwise approved

specs/light_client/merkle_proofs.md Outdated Show resolved Hide resolved
Co-Authored-By: hwwhww <hwwang156@gmail.com>
@djrtwo djrtwo merged commit e2e39d6 into dev Apr 18, 2019
@djrtwo djrtwo deleted the hwwhww/minor_fix_light_client branch April 18, 2019 01:35
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