From 57cbc5434cad66113dd049f0c9ef737272826a59 Mon Sep 17 00:00:00 2001 From: Danny Ryan Date: Thu, 4 Oct 2018 18:25:24 -0500 Subject: [PATCH] [fix-recent_block_hashes] remove min requirement from append_to_recent_block_hashes --- 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 dee4ac0e6..f76e6a08c 100644 --- a/specs/beacon-chain.md +++ b/specs/beacon-chain.md @@ -447,7 +447,7 @@ First, set `recent_block_hashes` to the output of the following, where `parent_h def append_to_recent_block_hashes(old_block_hashes, parent_slot, current_slot, parent_hash): d = current_slot - parent_slot - return old_block_hashes + [parent_hash] * min(d, len(old_block_hashes)) + return old_block_hashes + [parent_hash] * d ``` The output of `get_block_hash` should not change, except that it will no longer throw for `current_slot - 1`. Also, check that the block's `ancestor_hashes` array was correctly updated, using the following algorithm: