From c392db3b9b61065cc1c8af5d65f1230bc5862da5 Mon Sep 17 00:00:00 2001 From: Danny Ryan Date: Sat, 12 Oct 2019 14:44:53 +0900 Subject: [PATCH] fix max epochs var --- configs/mainnet.yaml | 2 ++ configs/minimal.yaml | 2 ++ specs/core/1_beacon-chain-misc.md | 1 + specs/core/1_custody-game.md | 1 + 4 files changed, 6 insertions(+) diff --git a/configs/mainnet.yaml b/configs/mainnet.yaml index 68c5052c2..a45e965d2 100644 --- a/configs/mainnet.yaml +++ b/configs/mainnet.yaml @@ -69,6 +69,8 @@ SLOTS_PER_HISTORICAL_ROOT: 8192 MIN_VALIDATOR_WITHDRAWABILITY_DELAY: 256 # 2**11 (= 2,048) epochs 9 days PERSISTENT_COMMITTEE_PERIOD: 2048 +# 2**6 (= 64) epochs ~7 hours +MAX_EPOCHS_PER_CROSSLINK: 64 # 2**2 (= 4) epochs 25.6 minutes MIN_EPOCHS_TO_INACTIVITY_PENALTY: 4 # 2**14 (= 16,384) epochs ~73 days diff --git a/configs/minimal.yaml b/configs/minimal.yaml index 8f7beebc7..dfed19426 100644 --- a/configs/minimal.yaml +++ b/configs/minimal.yaml @@ -68,6 +68,8 @@ SLOTS_PER_HISTORICAL_ROOT: 64 MIN_VALIDATOR_WITHDRAWABILITY_DELAY: 256 # 2**11 (= 2,048) epochs PERSISTENT_COMMITTEE_PERIOD: 2048 +# [customized] fast catchup crosslinks +MAX_EPOCHS_PER_CROSSLINK: 4 # 2**2 (= 4) epochs MIN_EPOCHS_TO_INACTIVITY_PENALTY: 4 # [customized] 2**12 (= 4,096) epochs diff --git a/specs/core/1_beacon-chain-misc.md b/specs/core/1_beacon-chain-misc.md index 6dd6e19c3..9f7a4d2d7 100644 --- a/specs/core/1_beacon-chain-misc.md +++ b/specs/core/1_beacon-chain-misc.md @@ -31,6 +31,7 @@ | Name | Value | Unit | Duration | - | - | - | - | +| `MAX_EPOCHS_PER_CROSSLINK` | `2**6` (= 64) | epochs | ~7 hours | | `MAX_SHARD_RECEIPT_PROOFS` | `2**0` (= 1) | - | - | | `PERIOD_COMMITTEE_ROOT_LENGTH` | `2**8` (= 256) | periods | ~9 months | | `MINOR_REWARD_QUOTIENT` | `2**8` (=256) | - | - | diff --git a/specs/core/1_custody-game.md b/specs/core/1_custody-game.md index 158d575e2..2fc4904ce 100644 --- a/specs/core/1_custody-game.md +++ b/specs/core/1_custody-game.md @@ -81,6 +81,7 @@ This document details the beacon chain additions and changes in Phase 1 of Ether | - | - | | `BLS12_381_Q` | `4002409555221667393417789825735904156556882819939007885332058136124031650490837864442687629129015664037894272559787` | | `MINOR_REWARD_QUOTIENT` | `2**8` (= 256) | +| `MAX_EPOCHS_PER_CROSSLINK` | `2**6` (= 64) | epochs | ~7 hours | ### Custody game parameters