Skip to content

Commit 9370362

Browse files
authored
Gnosis Pectra fork epoch (#7296)
~~* #7274~~ * #7295
1 parent bb5b00e commit 9370362

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

common/eth2_network_config/built_in_network_configs/gnosis/config.yaml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ DENEB_FORK_VERSION: 0x04000064
4343
DENEB_FORK_EPOCH: 889856 # 2024-03-11T18:30:20.000Z
4444
# Electra
4545
ELECTRA_FORK_VERSION: 0x05000064
46-
ELECTRA_FORK_EPOCH: 18446744073709551615
46+
ELECTRA_FORK_EPOCH: 1337856 # 2025-04-30T14:03:40.000Z
4747
# Fulu
4848
FULU_FORK_VERSION: 0x06000064
4949
FULU_FORK_EPOCH: 18446744073709551615
@@ -117,8 +117,20 @@ MAX_REQUEST_BLOB_SIDECARS: 768
117117
MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS: 16384
118118
# `6`
119119
BLOB_SIDECAR_SUBNET_COUNT: 6
120-
# `uint64(6)`
121-
MAX_BLOBS_PER_BLOCK: 6
120+
# `uint64(2)`
121+
MAX_BLOBS_PER_BLOCK: 2
122+
123+
# Electra
124+
# 2**7 * 10**9 (= 128,000,000,000)
125+
MIN_PER_EPOCH_CHURN_LIMIT_ELECTRA: 128000000000
126+
# 2**6 * 10**9 (= 64,000,000,000)
127+
MAX_PER_EPOCH_ACTIVATION_EXIT_CHURN_LIMIT: 64000000000
128+
# `2`
129+
BLOB_SIDECAR_SUBNET_COUNT_ELECTRA: 2
130+
# `uint64(2)`
131+
MAX_BLOBS_PER_BLOCK_ELECTRA: 2
132+
# MAX_REQUEST_BLOCKS_DENEB * MAX_BLOBS_PER_BLOCK_ELECTRA
133+
MAX_REQUEST_BLOB_SIDECARS_ELECTRA: 256
122134

123135
# DAS
124136
NUMBER_OF_COLUMNS: 128

consensus/types/src/chain_spec.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,7 +1236,7 @@ impl ChainSpec {
12361236
* Electra hard fork params
12371237
*/
12381238
electra_fork_version: [0x05, 0x00, 0x00, 0x64],
1239-
electra_fork_epoch: None,
1239+
electra_fork_epoch: Some(Epoch::new(1337856)),
12401240
unset_deposit_requests_start_index: u64::MAX,
12411241
full_exit_request_amount: 0,
12421242
min_activation_balance: option_wrapper(|| {
@@ -1258,7 +1258,7 @@ impl ChainSpec {
12581258
})
12591259
.expect("calculation does not overflow"),
12601260
max_per_epoch_activation_exit_churn_limit: option_wrapper(|| {
1261-
u64::checked_pow(2, 8)?.checked_mul(u64::checked_pow(10, 9)?)
1261+
u64::checked_pow(2, 6)?.checked_mul(u64::checked_pow(10, 9)?)
12621262
})
12631263
.expect("calculation does not overflow"),
12641264

@@ -1300,7 +1300,7 @@ impl ChainSpec {
13001300
max_request_data_column_sidecars: default_max_request_data_column_sidecars(),
13011301
min_epochs_for_blob_sidecars_requests: 16384,
13021302
blob_sidecar_subnet_count: default_blob_sidecar_subnet_count(),
1303-
max_blobs_per_block: default_max_blobs_per_block(),
1303+
max_blobs_per_block: 2,
13041304

13051305
/*
13061306
* Derived Deneb Specific
@@ -1313,9 +1313,9 @@ impl ChainSpec {
13131313
/*
13141314
* Networking Electra specific
13151315
*/
1316-
max_blobs_per_block_electra: default_max_blobs_per_block_electra(),
1317-
blob_sidecar_subnet_count_electra: default_blob_sidecar_subnet_count_electra(),
1318-
max_request_blob_sidecars_electra: default_max_request_blob_sidecars_electra(),
1316+
max_blobs_per_block_electra: 2,
1317+
blob_sidecar_subnet_count_electra: 2,
1318+
max_request_blob_sidecars_electra: 256,
13191319

13201320
/*
13211321
* Application specific

0 commit comments

Comments
 (0)