From 55d9f62bf20b35dfaafa24dd3b22dc0df2efe710 Mon Sep 17 00:00:00 2001 From: Hsiao-Wei Wang Date: Fri, 11 Dec 2020 16:17:16 +0800 Subject: [PATCH] (OOP SSZ) if the fields are updated, we need to redefine them when defining the new SSZ class with the new field classes --- specs/phase1/beacon-chain.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/specs/phase1/beacon-chain.md b/specs/phase1/beacon-chain.md index 3f4ee9e46..5e72c47a7 100644 --- a/specs/phase1/beacon-chain.md +++ b/specs/phase1/beacon-chain.md @@ -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]