Skip to content

Commit

Permalink
Don't expect DAS config in HTTP spec response (#6221)
Browse files Browse the repository at this point in the history
* Don't expect DAS config in HTTP spec response
  • Loading branch information
michaelsproul authored Aug 6, 2024
1 parent 612946b commit 42a1cd8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions consensus/types/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1365,10 +1365,13 @@ pub struct Config {
#[serde(with = "serde_utils::quoted_u64")]
max_per_epoch_activation_exit_churn_limit: u64,

#[serde(default = "default_custody_requirement")]
#[serde(with = "serde_utils::quoted_u64")]
custody_requirement: u64,
#[serde(default = "default_data_column_sidecar_subnet_count")]
#[serde(with = "serde_utils::quoted_u64")]
data_column_sidecar_subnet_count: u64,
#[serde(default = "default_number_of_columns")]
#[serde(with = "serde_utils::quoted_u64")]
number_of_columns: u64,
}
Expand Down Expand Up @@ -1509,6 +1512,18 @@ const fn default_maximum_gossip_clock_disparity_millis() -> u64 {
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 {
let max_request_blocks = max_request_blocks as usize;
RuntimeVariableList::<Hash256>::from_vec(
Expand Down

0 comments on commit 42a1cd8

Please sign in to comment.