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
Starting on phase 1 misc beacon changes #1323
Starting on phase 1 misc beacon changes #1323
Changes from 35 commits
3dc7430
fe9fe8a
caadc0d
3f20aca
5dad213
fab37e7
b9fddfe
a273d9e
2ae7323
6560bc4
0fa4491
7132778
36a2283
c5acddc
a0b8e9b
e4e6c4d
cb3e0f2
f9849ca
0cf4545
4f92e7f
49a008d
d424863
fd24308
8255091
e4a18f6
c1f2e92
1392c93
56954ec
72b9781
bcdbf7d
1704389
a4f86a8
6923bdc
b6d854d
fb59160
7175ac5
a509c68
178dd23
01af8e6
9b3cb30
f1caa85
ffdc369
ab4820c
0b38ff0
0f2e814
17702e6
979fa38
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.
What do you think about adding a custom type
CompactValidator: uint64
?Edit: just realized that
CompactValidator
andunpack_compact_validator
are defined insync_protocol.md
. I'd say:unpack_compact_validator
from1_beacon-chain-misc.md
since it's not used here.CompactValidator
definition to1_beacon-chain-misc.md
.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.
Where would it be put though? In the light client file that actually uses it? I can see how that's theoretically better in one way, but it has a big disadvantage, which is that pack and unpack are no longer beside each other. So I'd still favor putting both in the same file, to make it easier for readers to see that they are inverses.
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.
Looks like
ShardReceiptDelta
is going away in #1383. Should we define theShardReceiptDelta
container here?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.
Going to merge this and handle the conflict after reviewing #1383. Thanks for pointing this out :)
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.
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.
Is this needed? This function could theoretically be used for different kinds of committees; doesn't seem wise to put a maximum designed around a specific type of committee.
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.
It's a safety check since the size of
CompactCommittee
elements are set to maximumMAX_VALIDATORS_PER_COMMITTEE
:It leads to one more implicit config validity condition of that
MAX_VALIDATORS_PER_COMMITTEE >= TARGET_PERSISTENT_COMMITTEE_SIZE
. (p.s. #407)If we want to make this function could be used for different kinds of committees, how about refactoring this function into: