mirror of
https://github.com/sigp/lighthouse.git
synced 2026-07-04 13:24:39 +00:00
Don't expect DAS config in HTTP spec response (#6221)
* Don't expect DAS config in HTTP spec response
This commit is contained in:
@@ -1365,10 +1365,13 @@ pub struct Config {
|
|||||||
#[serde(with = "serde_utils::quoted_u64")]
|
#[serde(with = "serde_utils::quoted_u64")]
|
||||||
max_per_epoch_activation_exit_churn_limit: u64,
|
max_per_epoch_activation_exit_churn_limit: u64,
|
||||||
|
|
||||||
|
#[serde(default = "default_custody_requirement")]
|
||||||
#[serde(with = "serde_utils::quoted_u64")]
|
#[serde(with = "serde_utils::quoted_u64")]
|
||||||
custody_requirement: u64,
|
custody_requirement: u64,
|
||||||
|
#[serde(default = "default_data_column_sidecar_subnet_count")]
|
||||||
#[serde(with = "serde_utils::quoted_u64")]
|
#[serde(with = "serde_utils::quoted_u64")]
|
||||||
data_column_sidecar_subnet_count: u64,
|
data_column_sidecar_subnet_count: u64,
|
||||||
|
#[serde(default = "default_number_of_columns")]
|
||||||
#[serde(with = "serde_utils::quoted_u64")]
|
#[serde(with = "serde_utils::quoted_u64")]
|
||||||
number_of_columns: u64,
|
number_of_columns: u64,
|
||||||
}
|
}
|
||||||
@@ -1509,6 +1512,18 @@ const fn default_maximum_gossip_clock_disparity_millis() -> u64 {
|
|||||||
500
|
500
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const fn default_custody_requirement() -> u64 {
|
||||||
|
1
|
||||||
|
}
|
||||||
|
|
||||||
|
const fn default_data_column_sidecar_subnet_count() -> u64 {
|
||||||
|
32
|
||||||
|
}
|
||||||
|
|
||||||
|
const fn default_number_of_columns() -> u64 {
|
||||||
|
128
|
||||||
|
}
|
||||||
|
|
||||||
fn max_blocks_by_root_request_common(max_request_blocks: u64) -> usize {
|
fn max_blocks_by_root_request_common(max_request_blocks: u64) -> usize {
|
||||||
let max_request_blocks = max_request_blocks as usize;
|
let max_request_blocks = max_request_blocks as usize;
|
||||||
RuntimeVariableList::<Hash256>::from_vec(
|
RuntimeVariableList::<Hash256>::from_vec(
|
||||||
|
|||||||
Reference in New Issue
Block a user