From b8d85ef8bdb706d0c870a0aef98d580ce0440fa6 Mon Sep 17 00:00:00 2001 From: Julian Meyer Date: Tue, 6 Nov 2018 14:26:29 -0800 Subject: [PATCH] get_block_hash gets the block hash, not the block (#117) --- specs/beacon-chain.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/beacon-chain.md b/specs/beacon-chain.md index fc8ab40c7..3adf2c7e0 100644 --- a/specs/beacon-chain.md +++ b/specs/beacon-chain.md @@ -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.