<= becomes <

This commit is contained in:
vbuterin 2019-08-02 09:40:49 -04:00 committed by GitHub
parent c29d85aafb
commit ddd43ad99d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 and depth <= HISTORY_ACCUMULATOR_VECTOR:
while state.slot % 2**depth == 0 and depth < HISTORY_ACCUMULATOR_VECTOR:
state.history_accumulator[depth] = h
depth += 1