From 0e734286e493dbc50397524cc1efb03b81fca6a4 Mon Sep 17 00:00:00 2001 From: Etan Kissling Date: Mon, 27 May 2024 13:57:47 +0200 Subject: [PATCH] move `InactivityScores` to `base` Preparation for EIP-7495 SSZ `StableContainer` which can only contain immutable types in their fields. --- beacon_chain/spec/datatypes/altair.nim | 2 -- beacon_chain/spec/datatypes/base.nim | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/beacon_chain/spec/datatypes/altair.nim b/beacon_chain/spec/datatypes/altair.nim index 117e94019..cedd1d7d4 100644 --- a/beacon_chain/spec/datatypes/altair.nim +++ b/beacon_chain/spec/datatypes/altair.nim @@ -232,8 +232,6 @@ type ## (used to compute safety threshold) current_max_active_participants*: uint64 - InactivityScores* = HashList[uint64, Limit VALIDATOR_REGISTRY_LIMIT] - # https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/altair/beacon-chain.md#beaconstate BeaconState* = object # Versioning diff --git a/beacon_chain/spec/datatypes/base.nim b/beacon_chain/spec/datatypes/base.nim index a7609b7cb..e3d532dc5 100644 --- a/beacon_chain/spec/datatypes/base.nim +++ b/beacon_chain/spec/datatypes/base.nim @@ -474,6 +474,8 @@ type ## effectively making the cost of clearing the cache higher than the typical ## gains + InactivityScores* = HashList[uint64, Limit VALIDATOR_REGISTRY_LIMIT] + # https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/altair/beacon-chain.md#synccommittee SyncCommittee* = object pubkeys*: HashArray[Limit SYNC_COMMITTEE_SIZE, ValidatorPubKey]