Fix line lengths

This commit is contained in:
Alex Stokes 2019-06-26 17:06:34 -06:00 committed by GitHub
parent 10e257490f
commit 23909ca727
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -737,7 +737,8 @@ def get_randao_mix(state: BeaconState,
epoch: Epoch) -> Hash:
"""
Return the randao mix at a recent ``epoch``.
``epoch`` expected to be between (current_epoch - EPOCHS_PER_HISTORICAL_VECTOR, current_epoch], unless otherwise noted at a call site.
``epoch`` expected to be between (current_epoch - EPOCHS_PER_HISTORICAL_VECTOR, current_epoch], unless
otherwise noted at a call site.
"""
return state.randao_mixes[epoch % EPOCHS_PER_HISTORICAL_VECTOR]
```
@ -763,7 +764,8 @@ def generate_seed(state: BeaconState,
"""
Generate a seed for the given ``epoch``.
Note that avoiding the underflow on ``get_randao_mix`` here violates the epoch validity condition given in that function's comment.
Note that avoiding the underflow on ``get_randao_mix`` here violates
the epoch validity condition given in that function's comment.
"""
return hash(
get_randao_mix(state, Epoch(epoch + EPOCHS_PER_HISTORICAL_VECTOR - MIN_SEED_LOOKAHEAD)) +