Skip to content

Commit e4034b1

Browse files
committed
Schedule Deneb on mainnet
1 parent e7ef2a3 commit e4034b1

File tree

3 files changed

+53
-19
lines changed

3 files changed

+53
-19
lines changed

common/eth2_network_config/built_in_network_configs/mainnet/config.yaml

Lines changed: 51 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
# Mainnet config
22

33
# Extends the mainnet preset
4-
CONFIG_NAME: 'mainnet'
54
PRESET_BASE: 'mainnet'
65

6+
# Free-form short name of the network that this configuration applies to - known
7+
# canonical network names include:
8+
# * 'mainnet' - there can be only one
9+
# * 'prater' - testnet
10+
# Must match the regex: [a-z0-9\-]
11+
CONFIG_NAME: 'mainnet'
12+
713
# Transition
814
# ---------------------------------------------------------------
915
# Estimated on Sept 15, 2022
@@ -12,6 +18,8 @@ TERMINAL_TOTAL_DIFFICULTY: 58750000000000000000000
1218
TERMINAL_BLOCK_HASH: 0x0000000000000000000000000000000000000000000000000000000000000000
1319
TERMINAL_BLOCK_HASH_ACTIVATION_EPOCH: 18446744073709551615
1420

21+
22+
1523
# Genesis
1624
# ---------------------------------------------------------------
1725
# `2**14` (= 16,384)
@@ -32,22 +40,16 @@ GENESIS_DELAY: 604800
3240

3341
# Altair
3442
ALTAIR_FORK_VERSION: 0x01000000
35-
ALTAIR_FORK_EPOCH: 74240
36-
# Merge
43+
ALTAIR_FORK_EPOCH: 74240 # Oct 27, 2021, 10:56:23am UTC
44+
# Bellatrix
3745
BELLATRIX_FORK_VERSION: 0x02000000
38-
BELLATRIX_FORK_EPOCH: 144896 # Sept 6, 2022, 11:34:47am UTC
46+
BELLATRIX_FORK_EPOCH: 144896 # Sept 6, 2022, 11:34:47am UTC
3947
# Capella
4048
CAPELLA_FORK_VERSION: 0x03000000
41-
CAPELLA_FORK_EPOCH: 194048 # April 12, 2023, 10:27:35pm UTC
49+
CAPELLA_FORK_EPOCH: 194048 # April 12, 2023, 10:27:35pm UTC
4250
# Deneb
4351
DENEB_FORK_VERSION: 0x04000000
44-
DENEB_FORK_EPOCH: 18446744073709551615
45-
# Sharding
46-
SHARDING_FORK_VERSION: 0x03000000
47-
SHARDING_FORK_EPOCH: 18446744073709551615
48-
49-
# TBD, 2**32 is a placeholder. Merge transition approach is in active R&D.
50-
TRANSITION_TOTAL_DIFFICULTY: 4294967296
52+
DENEB_FORK_EPOCH: 269568 # March 13, 2024, 01:55:35pm UTC
5153

5254

5355
# Time parameters
@@ -74,16 +76,22 @@ INACTIVITY_SCORE_RECOVERY_RATE: 16
7476
EJECTION_BALANCE: 16000000000
7577
# 2**2 (= 4)
7678
MIN_PER_EPOCH_CHURN_LIMIT: 4
77-
# 2**3 (= 8)
78-
MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT: 8
7979
# 2**16 (= 65,536)
8080
CHURN_LIMIT_QUOTIENT: 65536
81-
81+
# [New in Deneb:EIP7514] 2**3 (= 8)
82+
MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT: 8
8283

8384
# Fork choice
8485
# ---------------------------------------------------------------
8586
# 40%
8687
PROPOSER_SCORE_BOOST: 40
88+
# 20%
89+
REORG_HEAD_WEIGHT_THRESHOLD: 20
90+
# 160%
91+
REORG_PARENT_WEIGHT_THRESHOLD: 160
92+
# `2` epochs
93+
REORG_MAX_EPOCHS_SINCE_FINALIZATION: 2
94+
8795

8896
# Deposit contract
8997
# ---------------------------------------------------------------
@@ -92,17 +100,43 @@ DEPOSIT_CHAIN_ID: 1
92100
DEPOSIT_NETWORK_ID: 1
93101
DEPOSIT_CONTRACT_ADDRESS: 0x00000000219ab540356cBB839Cbe05303d7705Fa
94102

95-
# Network
103+
104+
# Networking
96105
# ---------------------------------------------------------------
97-
SUBNETS_PER_NODE: 2
106+
# `10 * 2**20` (= 10485760, 10 MiB)
98107
GOSSIP_MAX_SIZE: 10485760
108+
# `2**10` (= 1024)
109+
MAX_REQUEST_BLOCKS: 1024
110+
# `2**8` (= 256)
111+
EPOCHS_PER_SUBNET_SUBSCRIPTION: 256
112+
# `MIN_VALIDATOR_WITHDRAWABILITY_DELAY + CHURN_LIMIT_QUOTIENT // 2` (= 33024, ~5 months)
99113
MIN_EPOCHS_FOR_BLOCK_REQUESTS: 33024
114+
# `10 * 2**20` (=10485760, 10 MiB)
100115
MAX_CHUNK_SIZE: 10485760
116+
# 5s
101117
TTFB_TIMEOUT: 5
118+
# 10s
102119
RESP_TIMEOUT: 10
120+
ATTESTATION_PROPAGATION_SLOT_RANGE: 32
121+
# 500ms
122+
MAXIMUM_GOSSIP_CLOCK_DISPARITY: 500
103123
MESSAGE_DOMAIN_INVALID_SNAPPY: 0x00000000
104124
MESSAGE_DOMAIN_VALID_SNAPPY: 0x01000000
125+
# 2 subnets per node
126+
SUBNETS_PER_NODE: 2
127+
# 2**8 (= 64)
105128
ATTESTATION_SUBNET_COUNT: 64
106129
ATTESTATION_SUBNET_EXTRA_BITS: 0
130+
# ceillog2(ATTESTATION_SUBNET_COUNT) + ATTESTATION_SUBNET_EXTRA_BITS
107131
ATTESTATION_SUBNET_PREFIX_BITS: 6
108132
ATTESTATION_SUBNET_SHUFFLING_PREFIX_BITS: 3
133+
134+
# Deneb
135+
# `2**7` (=128)
136+
MAX_REQUEST_BLOCKS_DENEB: 128
137+
# MAX_REQUEST_BLOCKS_DENEB * MAX_BLOBS_PER_BLOCK
138+
MAX_REQUEST_BLOB_SIDECARS: 768
139+
# `2**12` (= 4096 epochs, ~18 days)
140+
MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS: 4096
141+
# `6`
142+
BLOB_SIDECAR_SUBNET_COUNT: 6

consensus/types/presets/mainnet/deneb.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ FIELD_ELEMENTS_PER_BLOB: 4096
88
MAX_BLOB_COMMITMENTS_PER_BLOCK: 4096
99
# `uint64(6)`
1010
MAX_BLOBS_PER_BLOCK: 6
11-
# `floorlog2(BLOB_KZG_COMMITMENTS_GINDEX) + 1 + ceillog2(MAX_BLOB_COMMITMENTS_PER_BLOCK)` = 4 + 1 + 12 = 17
11+
# `floorlog2(get_generalized_index(BeaconBlockBody, 'blob_kzg_commitments')) + 1 + ceillog2(MAX_BLOB_COMMITMENTS_PER_BLOCK)` = 4 + 1 + 12 = 17
1212
KZG_COMMITMENT_INCLUSION_PROOF_DEPTH: 17

consensus/types/src/chain_spec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ impl ChainSpec {
681681
* Deneb hard fork params
682682
*/
683683
deneb_fork_version: [0x04, 0x00, 0x00, 0x00],
684-
deneb_fork_epoch: None,
684+
deneb_fork_epoch: Some(Epoch::new(269568)),
685685

686686
/*
687687
* Network specific

0 commit comments

Comments
 (0)