mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-03-03 11:40:39 +00:00
Update specs/phase1/beacon-chain.md
Co-authored-by: Hsiao-Wei Wang <hwwang156@gmail.com>
This commit is contained in:
parent
729e21cbcf
commit
d22e02f20a
@ -868,7 +868,7 @@ def apply_shard_transition(state: BeaconState, shard: Shard, transition: ShardTr
|
||||
assert optional_aggregate_verify(pubkeys, signing_roots, transition.proposer_signature_aggregate)
|
||||
|
||||
# Save updated state
|
||||
shard_state = transition.shard_states[len(transition.shard_states) - 1].copy()
|
||||
shard_state = copy(transition.shard_states[len(transition.shard_states) - 1])
|
||||
shard_state.slot = compute_previous_slot(state.slot)
|
||||
state.shard_states[shard] = shard_state
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user