Update 0_beacon-chain.md
This commit is contained in:
parent
92140d199e
commit
b19e7dbf0d
|
@ -1409,9 +1409,6 @@ Run the following function:
|
||||||
```python
|
```python
|
||||||
def process_crosslinks(state: BeaconState) -> None:
|
def process_crosslinks(state: BeaconState) -> None:
|
||||||
state.previous_crosslinks = [c for c in state.current_crosslinks]
|
state.previous_crosslinks = [c for c in state.current_crosslinks]
|
||||||
previous_epoch = get_previous_epoch(state)
|
|
||||||
next_epoch = get_current_epoch(state) + 1
|
|
||||||
for slot in range(get_epoch_start_slot(previous_epoch), get_epoch_start_slot(next_epoch)):
|
|
||||||
for epoch in (get_previous_epoch(state), get_current_epoch(state)):
|
for epoch in (get_previous_epoch(state), get_current_epoch(state)):
|
||||||
for offset in range(get_epoch_committee_count(state, epoch)):
|
for offset in range(get_epoch_committee_count(state, epoch)):
|
||||||
shard = (get_epoch_start_shard(epoch) + offset) % SHARD_COUNT
|
shard = (get_epoch_start_shard(epoch) + offset) % SHARD_COUNT
|
||||||
|
|
Loading…
Reference in New Issue