-
Notifications
You must be signed in to change notification settings - Fork 998
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
get_start_shard
proposal
#1858
get_start_shard
proposal
#1858
Conversation
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 good to me!
whoops, realized the :) |
1. Add unittests for testing `get_start_shard` with better granularity 2. Change `INITIAL_ACTIVE_SHARDS` from `4` to `2` for tight crosslinking
Added unit tests (not for test generator)! Also, the minimal config's |
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.
great!
One style suggestion and then go for the merge
tests/core/pyspec/eth2spec/test/phase_1/unittests/test_get_start_shard.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Danny Ryan <[email protected]>
Issue
Implement
get_start_shard
How did I fix it
current_epoch_start_shard
toBeaconState
.get_start_shard
state.current_epoch_start_shard
as the current view, to plus or substract the committee count delta.get_start_shard
andget_committee_count_at_slot
results should be cached.INITIAL_ACTIVE_SHARDS
from4
to2
for more frequent crosslinksTODO