From bb2835ee1bfc48808f3f15150f5187dbbcffc9b9 Mon Sep 17 00:00:00 2001 From: Vitalik Buterin Date: Mon, 28 Oct 2019 02:01:22 +0800 Subject: [PATCH] Shard slots to 128 bytes --- specs/core/1_new_shards.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specs/core/1_new_shards.md b/specs/core/1_new_shards.md index 54990a43f..0701bfa9f 100644 --- a/specs/core/1_new_shards.md +++ b/specs/core/1_new_shards.md @@ -42,7 +42,7 @@ This document describes the shard transition function (data layer only) and the | `LIGHT_CLIENT_COMMITTEE_SIZE` | `2**7` (= 128) | | `LIGHT_CLIENT_COMMITTEE_PERIOD` | `2**8` (= 256) | epochs | ~29 hours | | `SHARD_STATE_ROOT_LENGTH` | `2**7` (= 128) | bytes | -| `MAX_SHARD_BLOCK +| `MAX_SHARD_BLOCK_CHUNKS` | `2**2` (= 4) | | ## Containers @@ -75,7 +75,7 @@ class AttestationShardData(Container): # Shard block lengths shard_block_lengths: List[uint8, MAX_CATCHUP_RATIO * MAX_SHARDS] # Shard data roots - shard_data_roots: List[Hash, MAX_CATCHUP_RATIO * MAX_SHARDS] + shard_data_roots: List[Hash, List[Hash, MAX_SHARD_BLOCK_CHUNKS], MAX_CATCHUP_RATIO * MAX_SHARDS] # Intermediate state roots shard_state_roots: List[SHARD_STATE_ROOT, MAX_CATCHUP_RATIO * MAX_SHARDS] ``` @@ -232,7 +232,7 @@ def is_valid_indexed_attestation(state: BeaconState, indexed_attestation: Indexe ### New state variables ```python - shard_state_roots: Vector[Hash, MAX_SHARDS] + shard_state_roots: Vector[SHARD_STATE_ROOT, MAX_SHARDS] shard_trace_commitments: Vector[Hash, MAX_SHARDS] shard_next_slots: Vector[Slot, MAX_SHARDS] online_countdown: Bytes[VALIDATOR_REGISTRY_LIMIT]