Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
executable light client patch: beacon-chain.md #2141
executable light client patch: beacon-chain.md #2141
Changes from 23 commits
762f66e
13a7ae5
027aef7
56a34f8
99f6338
0c85e36
11606d0
5aa0efb
51d2b95
445cdf7
615dda7
1b7b842
e8bf518
bda72e4
6ee73a1
878553f
92ebbca
7f5e2d8
a97037e
c9603eb
979fdbf
4bbf304
060619d
c5efae4
b4571db
2440f5a
2c86b43
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@djrtwo
This line was
previous_slot = max(state.slot, Slot(1)) - Slot(1)
earlier.But since
max
needs to compare the same type, either we cast toSlot
or cast toint
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on https://github.com/ethereum/eth2.0-specs/pull/2130/files#r532294580
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We write "light client" in three different ways 😂
I guess we want to be consistent. (Small preference for "light client" on my side.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 on "light client".
Once we have a better hard fork name, we can replace the folder name
lightclient
with it.We can scan it again after merging this PR to avoid conflicts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@djrtwo @vbuterin
Since
sync_committee_bits
andsync_committee_signature
fields are added to block header instead of block body in 3b7c025, it would be more tricky to handle the SSZ objects at the fork boundary.latest_block_header
field here should be transformed fromphase0.BeaconBlockBody
tolightclient_patch.BeaconBlockBody
.previous_block_root = hash_tree_root(state.latest_block_header)
inprocess_slot
function because the previous root should have been computed with phase 0 form at phase 0.I think it makes more sense to have
sync_committee_bits
andsync_committee_signature
inBeaconBlockBody
although they are not "operations".There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 2c86b43