Move new constants to configurations

This commit is contained in:
Hsiao-Wei Wang 2023-09-15 16:28:24 +08:00
parent ff9aa13462
commit 1449007992
No known key found for this signature in database
GPG Key ID: AE3D6B174F971DE4
4 changed files with 45 additions and 6 deletions

View File

@ -93,6 +93,9 @@ CHURN_LIMIT_QUOTIENT: 65536
# ---------------------------------------------------------------
# 40%
PROPOSER_SCORE_BOOST: 40
# 6000ms
LATE_BLOCK_CUTOFF_MS: 6000
# Deposit contract
# ---------------------------------------------------------------
@ -131,7 +134,21 @@ ATTESTATION_SUBNET_EXTRA_BITS: 0
# ceillog2(ATTESTATION_SUBNET_COUNT) + ATTESTATION_SUBNET_EXTRA_BITS
ATTESTATION_SUBNET_PREFIX_BITS: 6
# Deneb
# Validator duties
# ---------------------------------------------------------------
# 6000ms
ATTESTATION_DUE_MS: 6000
# 9000ms
AGGREGATE_DUE_MS: 9000
# 6000ms
SYNC_MESSAGE_DUE_MS: 6000
# 9000ms
CONTRIBUTION_DUE_MS: 9000
# Deneb:EIP4844
# ---------------------------------------------------------------
# `2**7` (=128)
MAX_REQUEST_BLOCKS_DENEB: 128
# MAX_REQUEST_BLOCKS_DENEB * MAX_BLOBS_PER_BLOCK
@ -141,7 +158,9 @@ MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS: 4096
# `6`
BLOB_SIDECAR_SUBNET_COUNT: 6
# Whisk
# ---------------------------------------------------------------
# `Epoch(2**8)`
WHISK_EPOCHS_PER_SHUFFLING_PHASE: 256
# `Epoch(2)`

View File

@ -92,6 +92,8 @@ CHURN_LIMIT_QUOTIENT: 32
# ---------------------------------------------------------------
# 40%
PROPOSER_SCORE_BOOST: 40
# [customized] 3000ms
LATE_BLOCK_CUTOFF_MS: 3000
# Deposit contract
@ -132,7 +134,21 @@ ATTESTATION_SUBNET_EXTRA_BITS: 0
# ceillog2(ATTESTATION_SUBNET_COUNT) + ATTESTATION_SUBNET_EXTRA_BITS
ATTESTATION_SUBNET_PREFIX_BITS: 6
# Deneb
# Validator duties
# ---------------------------------------------------------------
# [customized] 3000ms
ATTESTATION_DUE_MS: 3000
# [customized] 4500ms
AGGREGATE_DUE_MS: 4500
# [customized] 3000ms
SYNC_MESSAGE_DUE_MS: 3000
# [customized] 4500ms
CONTRIBUTION_DUE_MS: 4500
# Deneb:EIP4844
# ---------------------------------------------------------------
# `2**7` (=128)
MAX_REQUEST_BLOCKS_DENEB: 128
# MAX_REQUEST_BLOCKS_DENEB * MAX_BLOBS_PER_BLOCK
@ -142,6 +158,10 @@ MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS: 4096
# `6`
BLOB_SIDECAR_SUBNET_COUNT: 6
# Whisk
# ---------------------------------------------------------------
# [customized]
WHISK_EPOCHS_PER_SHUFFLING_PHASE: 4
# [customized]
WHISK_PROPOSER_SELECTION_GAP: 1

View File

@ -7,7 +7,7 @@
- [Introduction](#introduction)
- [Containers](#containers)
- [Constants](#constants)
- [Configurations](#configurations)
- [Helpers](#helpers)
- [Extended `PayloadAttributes`](#extended-payloadattributes)
- [`is_data_available`](#is_data_available)
@ -23,7 +23,7 @@ This is the modification of the fork choice accompanying the Deneb upgrade.
## Containers
## Constants
## Configurations
| Name | Value |
| ---------------------- | ----------- |

View File

@ -10,7 +10,7 @@
- [Introduction](#introduction)
- [Prerequisites](#prerequisites)
- [Constants](#constants)
- [Configurations](#configurations)
- [Helpers](#helpers)
- [`BlobsBundle`](#blobsbundle)
- [Modified `GetPayloadResponse`](#modified-getpayloadresponse)
@ -45,7 +45,7 @@ All behaviors and definitions defined in this document, and documents it extends
All terminology, constants, functions, and protocol mechanics defined in the updated [Beacon Chain doc of Deneb](./beacon-chain.md) are requisite for this document and used throughout.
Please see related Beacon Chain doc before continuing and use them as a reference throughout.
## Constants
## Configurations
| Name | Value |
| --------------------- | ----------- |