mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-29 11:54:51 +00:00
slot -> epoch
This commit is contained in:
parent
d67f9cbfba
commit
ca3d0b8b53
@ -1037,7 +1037,7 @@ def get_block_root(state: BeaconState,
|
||||
def get_randao_mix(state: BeaconState,
|
||||
epoch: EpochNumber) -> Bytes32:
|
||||
"""
|
||||
Returns the randao mix at a recent ``slot``.
|
||||
Returns the randao mix at a recent ``epoch``.
|
||||
"""
|
||||
assert get_current_epoch(state) - LATEST_RANDAO_MIXES_LENGTH < epoch <= get_current_epoch(state)
|
||||
return state.latest_randao_mixes[epoch % LATEST_RANDAO_MIXES_LENGTH]
|
||||
|
Loading…
x
Reference in New Issue
Block a user