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

Greg/initial state && The Great Refactor #73

Merged
merged 21 commits into from
Jan 22, 2019
Merged

Conversation

GregTheGreek
Copy link
Member

@GregTheGreek GregTheGreek commented Jan 5, 2019

This PR was to establish the base functions for getting the initial state, which is the next step for #71
Due to some discussion around the testing I put this together to kill time and move the spec further.

In this PR:

  • Functionality for initial state, updating validator status, constants updated to new spec, interfaces updated to new spec and a few changes to the transition helper functions based on the new spec changes.
  • Update the spec per commit hash GregTheGreek/eth2.0-specs@e5ea67f4

Potential caveats:

  • EMPTY_SIGNATURE - (beaconChain/constants/constants.ts, Line 16) may not have been implemented correctly. I'm still wrapping my head around the Uint8Array / bytes related material. If this changes a few things will need to be adjusted within a few of the helpers in lib/index.ts but won't be a major issue.

@GregTheGreek GregTheGreek added this to the Phase0 milestone Jan 5, 2019
@GregTheGreek GregTheGreek added this to In progress in Phase0 via automation Jan 5, 2019
@GregTheGreek GregTheGreek mentioned this pull request Jan 7, 2019
.gitignore Outdated Show resolved Hide resolved
beaconChain/helpers/array.ts Outdated Show resolved Hide resolved
beaconChain/helpers/stateTransitionHelpers.ts Outdated Show resolved Hide resolved
beaconChain/interfaces/state.ts Outdated Show resolved Hide resolved
beaconChain/lib/state/index.ts Outdated Show resolved Hide resolved
beaconChain/lib/state/index.ts Outdated Show resolved Hide resolved
beaconChain/lib/state/index.ts Outdated Show resolved Hide resolved
beaconChain/lib/state/index.ts Outdated Show resolved Hide resolved
beaconChain/lib/state/index.ts Outdated Show resolved Hide resolved
beaconChain/tests/helpers/array.test.ts Show resolved Hide resolved
Phase0 automation moved this from In progress to Needs review Jan 7, 2019
@GregTheGreek GregTheGreek changed the title Greg/initial state Greg/initial state && The Great Refactor Jan 16, 2019
@GregTheGreek
Copy link
Member Author

@ansermino

@GregTheGreek GregTheGreek mentioned this pull request Jan 19, 2019
@GregTheGreek
Copy link
Member Author

@ansermino

Copy link
Member

@ansermino ansermino left a comment

Choose a reason for hiding this comment

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

See comment. Good to merge otherwise

Phase0 automation moved this from Needs review to Reviewer approved Jan 22, 2019
@GregTheGreek GregTheGreek merged commit 387a2f3 into master Jan 22, 2019
Phase0 automation moved this from Reviewer approved to Done Jan 22, 2019
@GregTheGreek GregTheGreek deleted the greg/initial-state branch January 22, 2019 22:39
wemeetagain added a commit that referenced this pull request Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Phase0
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants