Skip to content

Commit

Permalink
Add Deneb fork epoch for Gnosis (#5242)
Browse files Browse the repository at this point in the history
Squashed commit of the following:

commit 1422de9
Author: Paul Hauner <[email protected]>
Date:   Fri Feb 16 20:44:04 2024 +1100

    Fix chain spec values again

commit d61d53b
Author: Paul Hauner <[email protected]>
Date:   Fri Feb 16 20:25:43 2024 +1100

    Fix chain spec `max_per_epoch_activation_churn_limit`

commit 32b349e
Author: Paul Hauner <[email protected]>
Date:   Fri Feb 16 20:08:24 2024 +1100

    Change `MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT`

commit 8548506
Author: Paul Hauner <[email protected]>
Date:   Fri Feb 16 20:01:37 2024 +1100

    Adjust `min_epochs_for_block_requests`

commit 3305c10
Author: Paul Hauner <[email protected]>
Date:   Fri Feb 16 19:59:43 2024 +1100

    Update common/eth2_network_config/built_in_network_configs/gnosis/config.yaml

    Co-authored-by: realbigsean <[email protected]>

commit ca10127
Author: Paul Hauner <[email protected]>
Date:   Thu Feb 15 19:09:50 2024 +1100

    Add deneb constants

commit 94285cf
Author: Paul Hauner <[email protected]>
Date:   Thu Feb 15 19:06:32 2024 +1100

    Add Deneb fork epoch for Gnosis
  • Loading branch information
paulhauner committed Feb 18, 2024
1 parent 7ee4383 commit 624c66c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ CAPELLA_FORK_VERSION: 0x03000064
CAPELLA_FORK_EPOCH: 648704
# Deneb
DENEB_FORK_VERSION: 0x04000064
DENEB_FORK_EPOCH: 18446744073709551615
DENEB_FORK_EPOCH: 889856 # 2024-03-11T18:30:20.000Z
# Sharding
SHARDING_FORK_VERSION: 0x03000064
SHARDING_FORK_EPOCH: 18446744073709551615
Expand Down Expand Up @@ -75,7 +75,7 @@ EJECTION_BALANCE: 16000000000
# 2**2 (= 4)
MIN_PER_EPOCH_CHURN_LIMIT: 4
# 2**3 (= 8)
MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT: 8
MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT: 2
# 2**12 (= 4096)
CHURN_LIMIT_QUOTIENT: 4096

Expand Down Expand Up @@ -106,3 +106,13 @@ ATTESTATION_SUBNET_COUNT: 64
ATTESTATION_SUBNET_EXTRA_BITS: 0
ATTESTATION_SUBNET_PREFIX_BITS: 6
ATTESTATION_SUBNET_SHUFFLING_PREFIX_BITS: 3

# Deneb
# `2**7` (=128)
MAX_REQUEST_BLOCKS_DENEB: 128
# MAX_REQUEST_BLOCKS_DENEB * MAX_BLOBS_PER_BLOCK
MAX_REQUEST_BLOB_SIDECARS: 768
# `2**14` (= 16384 epochs, ~15 days)
MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS: 16384
# `6`
BLOB_SIDECAR_SUBNET_COUNT: 6
8 changes: 4 additions & 4 deletions consensus/types/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ impl ChainSpec {
max_committees_per_slot: 64,
target_committee_size: 128,
min_per_epoch_churn_limit: 4,
max_per_epoch_activation_churn_limit: 8,
max_per_epoch_activation_churn_limit: 2,
churn_limit_quotient: 4_096,
shuffle_round_count: 90,
min_genesis_active_validator_count: 4_096,
Expand Down Expand Up @@ -944,7 +944,7 @@ impl ChainSpec {
* Deneb hard fork params
*/
deneb_fork_version: [0x04, 0x00, 0x00, 0x64],
deneb_fork_epoch: None,
deneb_fork_epoch: Some(Epoch::new(889856)),

/*
* Network specific
Expand All @@ -958,7 +958,7 @@ impl ChainSpec {
target_aggregators_per_committee: 16,
epochs_per_subnet_subscription: default_epochs_per_subnet_subscription(),
gossip_max_size: default_gossip_max_size(),
min_epochs_for_block_requests: default_min_epochs_for_block_requests(),
min_epochs_for_block_requests: 33024,
max_chunk_size: default_max_chunk_size(),
ttfb_timeout: default_ttfb_timeout(),
resp_timeout: default_resp_timeout(),
Expand All @@ -975,7 +975,7 @@ impl ChainSpec {
*/
max_request_blocks_deneb: default_max_request_blocks_deneb(),
max_request_blob_sidecars: default_max_request_blob_sidecars(),
min_epochs_for_blob_sidecars_requests: default_min_epochs_for_blob_sidecars_requests(),
min_epochs_for_blob_sidecars_requests: 16384,
blob_sidecar_subnet_count: default_blob_sidecar_subnet_count(),

/*
Expand Down

0 comments on commit 624c66c

Please sign in to comment.