From 31f48b7b3bdc0c415a3cf50f3366402efb24d2f1 Mon Sep 17 00:00:00 2001 From: protolambda Date: Sat, 29 May 2021 22:39:25 +0200 Subject: [PATCH] update sharding presets --- presets/mainnet/sharding.yaml | 2 ++ presets/minimal/sharding.yaml | 2 ++ specs/sharding/beacon-chain.md | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/presets/mainnet/sharding.yaml b/presets/mainnet/sharding.yaml index 9a81c8cdc..2b78855fc 100644 --- a/presets/mainnet/sharding.yaml +++ b/presets/mainnet/sharding.yaml @@ -15,6 +15,8 @@ MAX_SHARD_PROPOSER_SLASHINGS: 16 # Shard block configs # --------------------------------------------------------------- MAX_SHARD_HEADERS_PER_SHARD: 4 +# 2**8 (= 256) +SHARD_STATE_MEMORY_SLOTS: 256 # 2**11 (= 2,048) MAX_SAMPLES_PER_BLOCK: 2048 # 2**10 (= 1,1024) diff --git a/presets/minimal/sharding.yaml b/presets/minimal/sharding.yaml index 7dedbc926..10f79c96e 100644 --- a/presets/minimal/sharding.yaml +++ b/presets/minimal/sharding.yaml @@ -15,6 +15,8 @@ MAX_SHARD_PROPOSER_SLASHINGS: 4 # Shard block configs # --------------------------------------------------------------- MAX_SHARD_HEADERS_PER_SHARD: 4 +# 2**8 (= 256) +SHARD_STATE_MEMORY_SLOTS: 256 # 2**11 (= 2,048) MAX_SAMPLES_PER_BLOCK: 2048 # 2**10 (= 1,1024) diff --git a/specs/sharding/beacon-chain.md b/specs/sharding/beacon-chain.md index d5e43623b..a562050bf 100644 --- a/specs/sharding/beacon-chain.md +++ b/specs/sharding/beacon-chain.md @@ -119,7 +119,7 @@ The following values are (non-configurable) constants used throughout the specif | `GASPRICE_ADJUSTMENT_COEFFICIENT` | `uint64(2**3)` (= 8) | Gasprice may decrease/increase by at most exp(1 / this value) *per epoch* | | `MAX_SHARD_PROPOSER_SLASHINGS` | `2**4` (= 16) | Maximum amount of shard proposer slashing operations per block | | `MAX_SHARD_HEADERS_PER_SHARD` | `4` | | -| `SHARD_STATE_MEMORY_SLOTS` | `uint64(2**8)` (=256) | Number of slots for which shard commitments and confirmation status is directly available in the state | +| `SHARD_STATE_MEMORY_SLOTS` | `uint64(2**8)` (= 256) | Number of slots for which shard commitments and confirmation status is directly available in the state | ### Shard block samples