From 664e25c21828e22fcb700e03a815c2e711f26d54 Mon Sep 17 00:00:00 2001 From: parithosh Date: Thu, 6 Jul 2023 12:35:26 +0200 Subject: [PATCH] update CL config --- .../cl/config.yaml.tmpl | 47 +++++++++++++++++-- 1 file changed, 44 insertions(+), 3 deletions(-) diff --git a/static_files/genesis-generation-config/cl/config.yaml.tmpl b/static_files/genesis-generation-config/cl/config.yaml.tmpl index 581ceb51..066c224e 100644 --- a/static_files/genesis-generation-config/cl/config.yaml.tmpl +++ b/static_files/genesis-generation-config/cl/config.yaml.tmpl @@ -45,9 +45,9 @@ DENEB_FORK_EPOCH: {{ .DenebForkEpoch }} # 12 seconds SECONDS_PER_SLOT: {{ .SecondsPerSlot }} # 5 epochs ~0.5 hours -MIN_VALIDATOR_WITHDRAWABILITY_DELAY: 5 +MIN_VALIDATOR_WITHDRAWABILITY_DELAY: 1 # 2**8 (= 256) epochs ~27 hours -SHARD_COMMITTEE_PERIOD: 256 +SHARD_COMMITTEE_PERIOD: 1 # It's very important that SECONDS_PER_ETH1_BLOCK * ETH1_FOLLOW_DISTANCE is a good amount of time, else # jitter will cause the Beacon nodes to think they're far behind the Eth1 nodes and give up syncing SECONDS_PER_ETH1_BLOCK: {{ .SecondsPerSlot }} @@ -76,4 +76,45 @@ PROPOSER_SCORE_BOOST: 40 # --------------------------------------------------------------- DEPOSIT_CHAIN_ID: {{ .NetworkId }} DEPOSIT_NETWORK_ID: {{ .NetworkId }} -DEPOSIT_CONTRACT_ADDRESS: {{ .DepositContractAddress }} \ No newline at end of file +DEPOSIT_CONTRACT_ADDRESS: {{ .DepositContractAddress }} + +# Networking +# --------------------------------------------------------------- +# `10 * 2**20` (= 10485760, 10 MiB) +GOSSIP_MAX_SIZE: 10485760 +# `2**10` (= 1024) +MAX_REQUEST_BLOCKS: 1024 +# `2**8` (= 256) +EPOCHS_PER_SUBNET_SUBSCRIPTION: 256 +# `MIN_VALIDATOR_WITHDRAWABILITY_DELAY + CHURN_LIMIT_QUOTIENT // 2` (= 33024, ~5 months) +MIN_EPOCHS_FOR_BLOCK_REQUESTS: 33024 +# `10 * 2**20` (=10485760, 10 MiB) +MAX_CHUNK_SIZE: 10485760 +# 5s +TTFB_TIMEOUT: 5 +# 10s +RESP_TIMEOUT: 10 +ATTESTATION_PROPAGATION_SLOT_RANGE: 32 +# 500ms +MAXIMUM_GOSSIP_CLOCK_DISPARITY: 500 +MESSAGE_DOMAIN_INVALID_SNAPPY: 0x00000000 +MESSAGE_DOMAIN_VALID_SNAPPY: 0x01000000 +# 2 subnets per node +SUBNETS_PER_NODE: 2 +# 2**8 (= 64) +ATTESTATION_SUBNET_COUNT: 64 +ATTESTATION_SUBNET_EXTRA_BITS: 0 +# ceillog2(ATTESTATION_SUBNET_COUNT) + ATTESTATION_SUBNET_EXTRA_BITS +ATTESTATION_SUBNET_PREFIX_BITS: 6 + +# Deneb +# `2**7` (=128) +MAX_REQUEST_BLOCKS_DENEB: 128 +# MAX_REQUEST_BLOCKS_DENEB * MAX_BLOBS_PER_BLOCK +MAX_REQUEST_BLOB_SIDECARS: 768 +# `2**12` (= 4096 epochs, ~18 days) +MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS: 4096 +# `6` +BLOB_SIDECAR_SUBNET_COUNT: 6 +# `uint64(6)` +MAX_BLOBS_PER_BLOCK: 6 \ No newline at end of file