From 6a9b3671f04f568a314e9d33f5e4b8060d9481a2 Mon Sep 17 00:00:00 2001 From: Hsiao-Wei Wang Date: Wed, 5 May 2021 19:53:37 +0800 Subject: [PATCH] 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