mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-31 21:05:24 +00:00
(OOP SSZ) if the fields are updated, we need to redefine them when defining the new SSZ class with the new field classes
This commit is contained in:
parent
1ce25c19e8
commit
55d9f62bf2
@ -141,6 +141,11 @@ class BeaconBlock(phase0.BeaconBlock):
|
||||
|
||||
```python
|
||||
class BeaconState(phase0.BeaconState):
|
||||
# Updated fields
|
||||
latest_block_header: BeaconBlockHeader
|
||||
previous_epoch_attestations: List[PendingAttestation, MAX_ATTESTATIONS * SLOTS_PER_EPOCH]
|
||||
current_epoch_attestations: List[PendingAttestation, MAX_ATTESTATIONS * SLOTS_PER_EPOCH]
|
||||
# New fields
|
||||
current_epoch_pending_headers: List[PendingHeader, MAX_PENDING_HEADERS * SLOTS_PER_EPOCH]
|
||||
previous_epoch_pending_headers: List[PendingHeader, MAX_PENDING_HEADERS * SLOTS_PER_EPOCH]
|
||||
most_recent_confirmed_commitments: Vector[Vector[DataCommitment, SLOTS_PER_EPOCH], MAX_SHARDS]
|
||||
|
Loading…
x
Reference in New Issue
Block a user