Update specs/core/1_shard-data-chains.md
Co-Authored-By: Hsiao-Wei Wang <hwwang156@gmail.com>
This commit is contained in:
parent
13d6a31c5c
commit
e08c365e2f
|
@ -421,6 +421,7 @@ def shard_slot_transition(state: ShardState, beacon_state: BeaconState) -> None:
|
||||||
h = hash_tree_root(state)
|
h = hash_tree_root(state)
|
||||||
while state.slot % 2**depth == 0:
|
while state.slot % 2**depth == 0:
|
||||||
state.history_acc[depth] = h
|
state.history_acc[depth] = h
|
||||||
|
depth += 1
|
||||||
|
|
||||||
# Period transitions
|
# Period transitions
|
||||||
if (state.slot + 1) % (SHARD_SLOTS_PER_BEACON_SLOT * SLOTS_PER_EPOCH * EPOCHS_PER_SHARD_PERIOD) == 0:
|
if (state.slot + 1) % (SHARD_SLOTS_PER_BEACON_SLOT * SLOTS_PER_EPOCH * EPOCHS_PER_SHARD_PERIOD) == 0:
|
||||||
|
|
Loading…
Reference in New Issue