mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-26 09:15:17 +00:00
Update specs/core/1_new_shards.md
Co-Authored-By: Hsiao-Wei Wang <hwwang156@gmail.com>
This commit is contained in:
parent
41be60ee6e
commit
793c8616cd
@ -457,7 +457,7 @@ def process_attestations(state: BeaconState, block: BeaconBlock, attestations: S
|
|||||||
### Misc block post-processing
|
### Misc block post-processing
|
||||||
|
|
||||||
```python
|
```python
|
||||||
def misc_block_post_process(state: BeaconState, block: BeaconBlock):
|
def misc_block_post_process(state: BeaconState, block: BeaconBlock) -> None:
|
||||||
# Verify that a `shard_transition` in a block is empty if an attestation was not processed for it
|
# Verify that a `shard_transition` in a block is empty if an attestation was not processed for it
|
||||||
for shard in range(MAX_SHARDS):
|
for shard in range(MAX_SHARDS):
|
||||||
if state.shard_states[shard].slot != state.slot - 1:
|
if state.shard_states[shard].slot != state.slot - 1:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user