From 9dcdbafba318fe42333c66f51e703cec2adf1434 Mon Sep 17 00:00:00 2001 From: vbuterin Date: Tue, 4 May 2021 17:19:15 -0700 Subject: [PATCH 1/4] Reorganization of config params to put sync committee in one section This may be marginally "cleaner" than the previous approach, keeping constants with the same topic together. --- specs/altair/beacon-chain.md | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/specs/altair/beacon-chain.md b/specs/altair/beacon-chain.md index 726747c59..49169eae8 100644 --- a/specs/altair/beacon-chain.md +++ b/specs/altair/beacon-chain.md @@ -114,20 +114,19 @@ This patch updates a few configuration values to move penalty parameters toward | `MIN_SLASHING_PENALTY_QUOTIENT_ALTAIR` | `uint64(2**6)` (= 64) | | `PROPORTIONAL_SLASHING_MULTIPLIER_ALTAIR` | `uint64(2)` | +### Sync committee + +| Name | Value | Unit | Duration | +| - | - | - | - | +| `SYNC_COMMITTEE_SIZE` | `uint64(2**10)` (= 1,024) | | | +| `SYNC_PUBKEYS_PER_AGGREGATE` | `uint64(2**6)` (= 64) | | | +| `EPOCHS_PER_SYNC_COMMITTEE_PERIOD` | `Epoch(2**8)` (= 256) | epochs | ~27 hours | + ### Misc | Name | Value | -| - | - | -| `SYNC_COMMITTEE_SIZE` | `uint64(2**10)` (= 1,024) | -| `SYNC_PUBKEYS_PER_AGGREGATE` | `uint64(2**6)` (= 64) | | `INACTIVITY_SCORE_BIAS` | `uint64(4)` | -### Time parameters - -| Name | Value | Unit | Duration | -| - | - | :-: | :-: | -| `EPOCHS_PER_SYNC_COMMITTEE_PERIOD` | `Epoch(2**8)` (= 256) | epochs | ~27 hours | - ### Domain types | Name | Value | From b310482bce960f77271c1929c47235b63b4f3842 Mon Sep 17 00:00:00 2001 From: vbuterin Date: Tue, 4 May 2021 17:19:51 -0700 Subject: [PATCH 2/4] Update specs/altair/beacon-chain.md --- specs/altair/beacon-chain.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specs/altair/beacon-chain.md b/specs/altair/beacon-chain.md index 49169eae8..60bbd69d8 100644 --- a/specs/altair/beacon-chain.md +++ b/specs/altair/beacon-chain.md @@ -125,6 +125,7 @@ This patch updates a few configuration values to move penalty parameters toward ### Misc | Name | Value | +| - | - | | `INACTIVITY_SCORE_BIAS` | `uint64(4)` | ### Domain types From d383a1421338e51908fc389519d5bc2e3603e173 Mon Sep 17 00:00:00 2001 From: Hsiao-Wei Wang Date: Wed, 5 May 2021 19:47:26 +0800 Subject: [PATCH 3/4] Fix ToC --- specs/altair/beacon-chain.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/altair/beacon-chain.md b/specs/altair/beacon-chain.md index 60bbd69d8..2272a3359 100644 --- a/specs/altair/beacon-chain.md +++ b/specs/altair/beacon-chain.md @@ -14,8 +14,8 @@ - [Misc](#misc) - [Configuration](#configuration) - [Updated penalty values](#updated-penalty-values) + - [Sync committee](#sync-committee) - [Misc](#misc-1) - - [Time parameters](#time-parameters) - [Domain types](#domain-types) - [Containers](#containers) - [Modified containers](#modified-containers) From 6a9b3671f04f568a314e9d33f5e4b8060d9481a2 Mon Sep 17 00:00:00 2001 From: Hsiao-Wei Wang Date: Wed, 5 May 2021 19:53:37 +0800 Subject: [PATCH 4/4] Fix the type of `EPOCHS_PER_SYNC_COMMITTEE_PERIOD` and update the config files --- configs/mainnet/altair.yaml | 14 +++++++------- configs/minimal/altair.yaml | 15 ++++++++------- specs/altair/beacon-chain.md | 2 +- 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/configs/mainnet/altair.yaml b/configs/mainnet/altair.yaml index 3cd4b8419..477a4e7f7 100644 --- a/configs/mainnet/altair.yaml +++ b/configs/mainnet/altair.yaml @@ -10,22 +10,22 @@ MIN_SLASHING_PENALTY_QUOTIENT_ALTAIR: 64 PROPORTIONAL_SLASHING_MULTIPLIER_ALTAIR: 2 -# Misc +# Sync committee # --------------------------------------------------------------- # 2**10 (= 1,024) SYNC_COMMITTEE_SIZE: 1024 # 2**6 (= 64) SYNC_PUBKEYS_PER_AGGREGATE: 64 -# 2**2 (= 4) -INACTIVITY_SCORE_BIAS: 4 - - -# Time parameters -# --------------------------------------------------------------- # 2**8 (= 256) EPOCHS_PER_SYNC_COMMITTEE_PERIOD: 256 +# Misc +# --------------------------------------------------------------- +# 2**2 (= 4) +INACTIVITY_SCORE_BIAS: 4 + + # Signature domains # --------------------------------------------------------------- DOMAIN_SYNC_COMMITTEE: 0x07000000 diff --git a/configs/minimal/altair.yaml b/configs/minimal/altair.yaml index f9b30eea2..36e7c5021 100644 --- a/configs/minimal/altair.yaml +++ b/configs/minimal/altair.yaml @@ -10,22 +10,22 @@ MIN_SLASHING_PENALTY_QUOTIENT_ALTAIR: 64 PROPORTIONAL_SLASHING_MULTIPLIER_ALTAIR: 2 -# Misc +# Sync committee # --------------------------------------------------------------- # [customized] SYNC_COMMITTEE_SIZE: 32 # [customized] SYNC_PUBKEYS_PER_AGGREGATE: 16 -# 2**2 (= 4) -INACTIVITY_SCORE_BIAS: 4 - - -# Time parameters -# --------------------------------------------------------------- # [customized] EPOCHS_PER_SYNC_COMMITTEE_PERIOD: 8 +# Misc +# --------------------------------------------------------------- +# 2**2 (= 4) +INACTIVITY_SCORE_BIAS: 4 + + # Signature domains # --------------------------------------------------------------- DOMAIN_SYNC_COMMITTEE: 0x07000000 @@ -50,6 +50,7 @@ MAX_VALID_LIGHT_CLIENT_UPDATES: 32 # [customized] LIGHT_CLIENT_UPDATE_TIMEOUT: 32 + # Validator # --------------------------------------------------------------- # 2**2 (= 4) diff --git a/specs/altair/beacon-chain.md b/specs/altair/beacon-chain.md index 2272a3359..cbad9413d 100644 --- a/specs/altair/beacon-chain.md +++ b/specs/altair/beacon-chain.md @@ -120,7 +120,7 @@ This patch updates a few configuration values to move penalty parameters toward | - | - | - | - | | `SYNC_COMMITTEE_SIZE` | `uint64(2**10)` (= 1,024) | | | | `SYNC_PUBKEYS_PER_AGGREGATE` | `uint64(2**6)` (= 64) | | | -| `EPOCHS_PER_SYNC_COMMITTEE_PERIOD` | `Epoch(2**8)` (= 256) | epochs | ~27 hours | +| `EPOCHS_PER_SYNC_COMMITTEE_PERIOD` | `uint64(2**8)` (= 256) | epochs | ~27 hours | ### Misc