Update specs/core/0_beacon-chain.md

Co-Authored-By: vbuterin <v@buterin.com>
This commit is contained in:
Hsiao-Wei Wang 2019-01-19 18:11:07 -06:00 committed by GitHub
parent 47170bfafd
commit 958c338c8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -994,7 +994,7 @@ def get_randao_mix(state: BeaconState,
def get_active_index_root(state: BeaconState, def get_active_index_root(state: BeaconState,
slot: int) -> Hash32: slot: int) -> Hash32:
""" """
Returns the randao mix at a recent ``slot``. Returns the index root at a recent ``slot``.
""" """
assert state.slot // EPOCH_LENGTH < slot // EPOCH_LENGTH + LATEST_INDEX_ROOTS_LENGTH assert state.slot // EPOCH_LENGTH < slot // EPOCH_LENGTH + LATEST_INDEX_ROOTS_LENGTH
assert slot // EPOCH_LENGTH <= state.slot // EPOCH_LENGTH assert slot // EPOCH_LENGTH <= state.slot // EPOCH_LENGTH