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
|
return None
|
||||||
|
|
||||||
MAX_RANDOM_BYTE = 2**8 - 1
|
MAX_RANDOM_BYTE = 2**8 - 1
|
||||||
seed = get_seed(state, current_epoch, DOMAIN_SHARD_PROPOSER)
|
epoch_seed = get_seed(state, current_epoch, DOMAIN_SHARD_PROPOSER)
|
||||||
seed = hash(seed + int_to_bytes(shard, length=8) + int_to_bytes(slot, length=8))
|
seed = hash(epoch_seed + int_to_bytes(shard, length=8) + int_to_bytes(slot, length=8))
|
||||||
i = 0
|
i = 0
|
||||||
while True:
|
while True:
|
||||||
candidate_index = active_indices[(slot + i) % len(active_indices)]
|
candidate_index = active_indices[(slot + i) % len(active_indices)]
|
||||||
|
|
Loading…
Reference in New Issue