get_block_hash gets the block hash, not the block (#117)

This commit is contained in:
Julian Meyer 2018-11-06 14:26:29 -08:00 committed by Danny Ryan
parent a6cf5c4da1
commit b8d85ef8bd
1 changed files with 1 additions and 1 deletions

View File

@ -474,7 +474,7 @@ def get_block_hash(active_state: ActiveState,
return active_state.recent_block_hashes[slot - earliest_slot_in_array]
```
`get_block_hash(_, _, s)` should always return the block in the beacon chain at slot `s`, and `get_shards_and_committees_for_slot(_, s)` should not change unless the validator set changes.
`get_block_hash(_, _, s)` should always return the block hash in the beacon chain at slot `s`, and `get_shards_and_committees_for_slot(_, s)` should not change unless the validator set changes.
We define another set of helpers to be used throughout: `bytes1(x): return x.to_bytes(1, 'big')`, `bytes2(x): return x.to_bytes(2, 'big')`, and so on for all integers, particularly 1, 2, 3, 4, 8, 32.