mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-30 19:23:50 +00:00
Shift networking configuration (#4426)
## Issue Addressed Addresses [#4401](https://github.com/sigp/lighthouse/issues/4401) ## Proposed Changes Shift some constants into ```ChainSpec``` and remove the constant values from code space. ## Additional Info I mostly used ```MainnetEthSpec::default_spec()``` for getting ```ChainSpec```. I wonder Did I make a mistake about that. Co-authored-by: armaganyildirak <armaganyildirak@gmail.com> Co-authored-by: Paul Hauner <paul@paulhauner.com> Co-authored-by: Age Manning <Age@AgeManning.com> Co-authored-by: Diva M <divma@protonmail.com>
This commit is contained in:
@@ -89,4 +89,14 @@ DEPOSIT_CONTRACT_ADDRESS: 0x0B98057eA310F4d31F2a452B414647007d1645d9
|
||||
|
||||
# Network
|
||||
# ---------------------------------------------------------------
|
||||
SUBNETS_PER_NODE: 4
|
||||
SUBNETS_PER_NODE: 4
|
||||
GOSSIP_MAX_SIZE: 10485760
|
||||
MIN_EPOCHS_FOR_BLOCK_REQUESTS: 33024
|
||||
MAX_CHUNK_SIZE: 10485760
|
||||
TTFB_TIMEOUT: 5
|
||||
RESP_TIMEOUT: 10
|
||||
MESSAGE_DOMAIN_INVALID_SNAPPY: 0x00000000
|
||||
MESSAGE_DOMAIN_VALID_SNAPPY: 0x01000000
|
||||
ATTESTATION_SUBNET_COUNT: 64
|
||||
ATTESTATION_SUBNET_EXTRA_BITS: 0
|
||||
ATTESTATION_SUBNET_PREFIX_BITS: 6
|
||||
|
||||
@@ -89,4 +89,14 @@ DEPOSIT_CONTRACT_ADDRESS: 0x00000000219ab540356cBB839Cbe05303d7705Fa
|
||||
|
||||
# Network
|
||||
# ---------------------------------------------------------------
|
||||
SUBNETS_PER_NODE: 2
|
||||
SUBNETS_PER_NODE: 2
|
||||
GOSSIP_MAX_SIZE: 10485760
|
||||
MIN_EPOCHS_FOR_BLOCK_REQUESTS: 33024
|
||||
MAX_CHUNK_SIZE: 10485760
|
||||
TTFB_TIMEOUT: 5
|
||||
RESP_TIMEOUT: 10
|
||||
MESSAGE_DOMAIN_INVALID_SNAPPY: 0x00000000
|
||||
MESSAGE_DOMAIN_VALID_SNAPPY: 0x01000000
|
||||
ATTESTATION_SUBNET_COUNT: 64
|
||||
ATTESTATION_SUBNET_EXTRA_BITS: 0
|
||||
ATTESTATION_SUBNET_PREFIX_BITS: 6
|
||||
|
||||
@@ -89,4 +89,14 @@ DEPOSIT_CONTRACT_ADDRESS: 0xff50ed3d0ec03aC01D4C79aAd74928BFF48a7b2b
|
||||
|
||||
# Network
|
||||
# ---------------------------------------------------------------
|
||||
SUBNETS_PER_NODE: 2
|
||||
SUBNETS_PER_NODE: 2
|
||||
GOSSIP_MAX_SIZE: 10485760
|
||||
MIN_EPOCHS_FOR_BLOCK_REQUESTS: 33024
|
||||
MAX_CHUNK_SIZE: 10485760
|
||||
TTFB_TIMEOUT: 5
|
||||
RESP_TIMEOUT: 10
|
||||
MESSAGE_DOMAIN_INVALID_SNAPPY: 0x00000000
|
||||
MESSAGE_DOMAIN_VALID_SNAPPY: 0x01000000
|
||||
ATTESTATION_SUBNET_COUNT: 64
|
||||
ATTESTATION_SUBNET_EXTRA_BITS: 0
|
||||
ATTESTATION_SUBNET_PREFIX_BITS: 6
|
||||
|
||||
@@ -77,4 +77,14 @@ DEPOSIT_CONTRACT_ADDRESS: 0x7f02C3E3c98b133055B8B348B2Ac625669Ed295D
|
||||
|
||||
# Network
|
||||
# ---------------------------------------------------------------
|
||||
SUBNETS_PER_NODE: 2
|
||||
SUBNETS_PER_NODE: 2
|
||||
GOSSIP_MAX_SIZE: 10485760
|
||||
MIN_EPOCHS_FOR_BLOCK_REQUESTS: 33024
|
||||
MAX_CHUNK_SIZE: 10485760
|
||||
TTFB_TIMEOUT: 5
|
||||
RESP_TIMEOUT: 10
|
||||
MESSAGE_DOMAIN_INVALID_SNAPPY: 0x00000000
|
||||
MESSAGE_DOMAIN_VALID_SNAPPY: 0x01000000
|
||||
ATTESTATION_SUBNET_COUNT: 64
|
||||
ATTESTATION_SUBNET_EXTRA_BITS: 0
|
||||
ATTESTATION_SUBNET_PREFIX_BITS: 6
|
||||
|
||||
Reference in New Issue
Block a user