From c29d85aafb99639930e49129e0c173082de450f5 Mon Sep 17 00:00:00 2001 From: vbuterin Date: Fri, 2 Aug 2019 09:40:26 -0400 Subject: [PATCH] Update specs/core/1_shard-data-chains.md Co-Authored-By: Hsiao-Wei Wang --- specs/core/1_shard-data-chains.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/core/1_shard-data-chains.md b/specs/core/1_shard-data-chains.md index c4d8e2701..f284574f2 100644 --- a/specs/core/1_shard-data-chains.md +++ b/specs/core/1_shard-data-chains.md @@ -432,7 +432,7 @@ def shard_slot_transition(state: ShardState, beacon_state: BeaconState) -> None: # Save states in history accumulator depth = 0 h = hash_tree_root(state) - while state.slot % 2**depth == 0: + while state.slot % 2**depth == 0 and depth <= HISTORY_ACCUMULATOR_VECTOR: state.history_accumulator[depth] = h depth += 1