Update apply_shard_transition comments
This commit is contained in:
parent
d22e02f20a
commit
77b933035c
|
@ -867,7 +867,7 @@ def apply_shard_transition(state: BeaconState, shard: Shard, transition: ShardTr
|
||||||
# Verify combined proposer signature
|
# Verify combined proposer signature
|
||||||
assert optional_aggregate_verify(pubkeys, signing_roots, transition.proposer_signature_aggregate)
|
assert optional_aggregate_verify(pubkeys, signing_roots, transition.proposer_signature_aggregate)
|
||||||
|
|
||||||
# Save updated state
|
# Copy and save updated shard state
|
||||||
shard_state = copy(transition.shard_states[len(transition.shard_states) - 1])
|
shard_state = copy(transition.shard_states[len(transition.shard_states) - 1])
|
||||||
shard_state.slot = compute_previous_slot(state.slot)
|
shard_state.slot = compute_previous_slot(state.slot)
|
||||||
state.shard_states[shard] = shard_state
|
state.shard_states[shard] = shard_state
|
||||||
|
|
Loading…
Reference in New Issue