Skip to content

Commit 42a1cd8

Browse files
Don't expect DAS config in HTTP spec response (#6221)
* Don't expect DAS config in HTTP spec response
1 parent 612946b commit 42a1cd8

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

consensus/types/src/chain_spec.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,10 +1365,13 @@ pub struct Config {
13651365
#[serde(with = "serde_utils::quoted_u64")]
13661366
max_per_epoch_activation_exit_churn_limit: u64,
13671367

1368+
#[serde(default = "default_custody_requirement")]
13681369
#[serde(with = "serde_utils::quoted_u64")]
13691370
custody_requirement: u64,
1371+
#[serde(default = "default_data_column_sidecar_subnet_count")]
13701372
#[serde(with = "serde_utils::quoted_u64")]
13711373
data_column_sidecar_subnet_count: u64,
1374+
#[serde(default = "default_number_of_columns")]
13721375
#[serde(with = "serde_utils::quoted_u64")]
13731376
number_of_columns: u64,
13741377
}
@@ -1509,6 +1512,18 @@ const fn default_maximum_gossip_clock_disparity_millis() -> u64 {
15091512
500
15101513
}
15111514

1515+
const fn default_custody_requirement() -> u64 {
1516+
1
1517+
}
1518+
1519+
const fn default_data_column_sidecar_subnet_count() -> u64 {
1520+
32
1521+
}
1522+
1523+
const fn default_number_of_columns() -> u64 {
1524+
128
1525+
}
1526+
15121527
fn max_blocks_by_root_request_common(max_request_blocks: u64) -> usize {
15131528
let max_request_blocks = max_request_blocks as usize;
15141529
RuntimeVariableList::<Hash256>::from_vec(

0 commit comments

Comments
 (0)