mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-17 21:16:52 +00:00
Update specs/core/1_shard-data-chains.md
Co-Authored-By: vbuterin <v@buterin.com>
This commit is contained in:
parent
bdd7dc106a
commit
5e84d7e3ff
@ -95,7 +95,7 @@ def get_proposal_committee(seed: Bytes32,
|
|||||||
|
|
||||||
def get_switchover_epoch(index):
|
def get_switchover_epoch(index):
|
||||||
return (
|
return (
|
||||||
int.from_bytes(hash(generate_seed(state, earlier_committee_start) + bytes3(index)), 'little') %
|
bytes_to_int(hash(generate_seed(state, earlier_committee_start) + bytes3(index))[0:8]) %
|
||||||
PROPOSAL_RESHUFFLE_PERIOD
|
PROPOSAL_RESHUFFLE_PERIOD
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user