align `StableContainer` types with latest EIP-7688 specs

This commit is contained in:
Etan Kissling 2024-06-13 10:32:55 +02:00
parent c2777513bb
commit 388f1cfa7b
No known key found for this signature in database
GPG Key ID: B21DA824C5A3D03D
2 changed files with 3 additions and 5 deletions

View File

@ -68,8 +68,7 @@ type
signature*: TrustedSig
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.0/specs/electra/beacon-chain.md#attesterslashing
AttesterSlashing* {.
sszProfile: StableAttesterSlashing.} = object
AttesterSlashing* = object
attestation_1*: IndexedAttestation # [Modified in Electra:EIP7549]
attestation_2*: IndexedAttestation # [Modified in Electra:EIP7549]

View File

@ -123,8 +123,7 @@ type
blob_kzg_commitments*: Opt[KzgCommitments]
consolidations*: Opt[List[SignedConsolidation, Limit MAX_CONSOLIDATIONS]]
StableBeaconState* {.
sszStableContainer: MAX_BEACON_STATE_FIELDS.} = object
StableBeaconState* {.sszStableContainer: MAX_BEACON_STATE_FIELDS.} = object
# Versioning
genesis_time*: Opt[uint64]
genesis_validators_root*: Opt[Eth2Digest]
@ -146,7 +145,7 @@ type
eth1_data*: Opt[Eth1Data]
eth1_data_votes*: Opt[HashList[Eth1Data,
Limit(EPOCHS_PER_ETH1_VOTING_PERIOD * SLOTS_PER_EPOCH)]]
eth1_deposit_index*: uint64
eth1_deposit_index*: Opt[uint64]
# Registry
validators*: Opt[HashList[Validator, Limit VALIDATOR_REGISTRY_LIMIT]]