-
Notifications
You must be signed in to change notification settings - Fork 997
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
Cleanup containers #1156
Cleanup containers #1156
Conversation
We debated this long ago and decided that |
There is a difference between
Whereas |
I was in favour of
|
specs/core/0_beacon-chain.md
Outdated
slot: Slot | ||
fork: Fork | ||
# History | ||
parent_block_header: BeaconBlockHeader |
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.
Not sure about the semantics here.
The latest_block_header
seen should be the parent
of the next block, but it is not a parent when recorded and not during any skipped slots when it is recorded into block_roots
.
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.
Agreed that naming is awkward here. Brainstorming:
block_header
(matches the type nicely; vagueness hides difficult-to-explain subtleties)partial_block_header
(a bit more accurate)latest_block_header
(make an exception here for "latest" prefix)latest_partial_block_header
(a bit of mouthful)
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.
latest_
seems reasonable and purposefully descriptive here (as opposed to it just being thrown on all the history arrays).
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.
bump @JustinDrake
Just handled merge conflict. let's resolve this and get merged.
@protolambda, @hwwhww Looks like there is a race condition in the linter CI. I didn't change phase 1 yet the CI is complaining about it. @djrtwo I think I've addressed all issues, and I've added a bunch of descriptions to field containers. Feel free to edit/add/remove those as you feel appropriate :) |
@JustinDrake I'll take a closer look. Best guess would be that you changed something in phase 0, and it wound up as part of phase 1. |
@JustinDrake fixed linting in 75b4692 . Not a race condition, just one missing space. You can run |
deposit_index
=>eth1_deposit_index
(more precise and future proof; consistent witheth1_data
andeth1_data_votes
in "Eth1" grouping)previous_epoch_attestations
=>previous_attestations
(consistent withprevious_crosslinks
,previous_justified_epoch
andprevious_justified_root
; shorter)validator_registry
=>validators
(cleaner; more semantically correct—the registry is now bothvalidators
andbalances
; shorter)latest_
prefixes (cleaner; shorter; the prefix does not add much other than clutter; we make an exception forlatest_block_header
)BeaconState
fields, following a logical progression (see item 14 in Phase 0 state transition checklist—take 5 #1054)