mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-20 06:18:15 +00:00
Add tuple lengths
Adding tuple lengths in BeaconState objects (this changes merkleization/serialization as no length mixin required)
This commit is contained in:
parent
bed888810d
commit
776196e66d
@ -522,7 +522,7 @@ The following data structures are defined as [SimpleSerialize (SSZ)](https://git
|
|||||||
'validator_registry_update_epoch': 'uint64',
|
'validator_registry_update_epoch': 'uint64',
|
||||||
|
|
||||||
# Randomness and committees
|
# Randomness and committees
|
||||||
'latest_randao_mixes': ['bytes32'],
|
'latest_randao_mixes': ['bytes32', LATEST_RANDAO_MIXES_LENGTH],
|
||||||
'previous_shuffling_start_shard': 'uint64',
|
'previous_shuffling_start_shard': 'uint64',
|
||||||
'current_shuffling_start_shard': 'uint64',
|
'current_shuffling_start_shard': 'uint64',
|
||||||
'previous_shuffling_epoch': 'uint64',
|
'previous_shuffling_epoch': 'uint64',
|
||||||
@ -537,10 +537,10 @@ The following data structures are defined as [SimpleSerialize (SSZ)](https://git
|
|||||||
'finalized_epoch': 'uint64',
|
'finalized_epoch': 'uint64',
|
||||||
|
|
||||||
# Recent state
|
# Recent state
|
||||||
'latest_crosslinks': [Crosslink],
|
'latest_crosslinks': [Crosslink, SHARD_COUNT],
|
||||||
'latest_block_roots': ['bytes32'],
|
'latest_block_roots': ['bytes32', SLOTS_PER_HISTORICAL_ROOT],
|
||||||
'latest_active_index_roots': ['bytes32'],
|
'latest_active_index_roots': ['bytes32', LATEST_ACTIVE_INDEX_ROOTS_LENGTH],
|
||||||
'latest_slashed_balances': ['uint64'], # Balances slashed at every withdrawal period
|
'latest_slashed_balances': ['uint64', LATEST_SLASHED_EXIT_LENGTH], # Balances slashed at every withdrawal period
|
||||||
'latest_attestations': [PendingAttestation],
|
'latest_attestations': [PendingAttestation],
|
||||||
'batched_block_roots': ['bytes32'],
|
'batched_block_roots': ['bytes32'],
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user