mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-06 07:44:56 +00:00
Rename seed to epoch_seed as per Danny
This commit is contained in:
parent
e7db58cb7e
commit
25efbe7458
@ -270,8 +270,8 @@ def get_shard_block_proposer_index(state: BeaconState,
|
||||
return None
|
||||
|
||||
MAX_RANDOM_BYTE = 2**8 - 1
|
||||
seed = get_seed(state, current_epoch, DOMAIN_SHARD_PROPOSER)
|
||||
seed = hash(seed + int_to_bytes(shard, length=8) + int_to_bytes(slot, length=8))
|
||||
epoch_seed = get_seed(state, current_epoch, DOMAIN_SHARD_PROPOSER)
|
||||
seed = hash(epoch_seed + int_to_bytes(shard, length=8) + int_to_bytes(slot, length=8))
|
||||
i = 0
|
||||
while True:
|
||||
candidate_index = active_indices[(slot + i) % len(active_indices)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user