From 16e416e5da2fe3b49bb6374f6b2100f7e315ac74 Mon Sep 17 00:00:00 2001 From: Povilas Liubauskas Date: Fri, 17 May 2024 18:42:35 +0300 Subject: [PATCH] WIP: config --- types/src/config.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/types/src/config.rs b/types/src/config.rs index 94dccd85..f14343d7 100644 --- a/types/src/config.rs +++ b/types/src/config.rs @@ -130,6 +130,8 @@ pub struct Config { pub min_epochs_for_blob_sidecars_requests: u64, #[serde(with = "serde_utils::string_or_native")] pub blob_sidecar_subnet_count: u64, + #[serde(with = "serde_utils::string_or_native")] + pub data_column_sidecar_subnet_count: u64, // Transition pub terminal_block_hash: ExecutionBlockHash, @@ -137,6 +139,12 @@ pub struct Config { pub terminal_block_hash_activation_epoch: Epoch, pub terminal_total_difficulty: Difficulty, + // Custody + #[serde(with = "serde_utils::string_or_native")] + pub custody_requirement: u64, + #[serde(with = "serde_utils::string_or_native")] + pub samples_per_slot: u64, + // Later phases and other unknown variables // // Collect unknown variables in a map so we can log a warning about them. @@ -214,6 +222,7 @@ impl Default for Config { max_request_blob_sidecars: 768, min_epochs_for_blob_sidecars_requests: 4096, blob_sidecar_subnet_count: 6, + data_column_sidecar_subnet_count: 64, // Transition terminal_block_hash: ExecutionBlockHash::zero(), @@ -222,6 +231,10 @@ impl Default for Config { "fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc00" )), + // Custody + custody_requirement: 4, + samples_per_slot: 16, + // Later phases and other unknown variables unknown: BTreeMap::new(), }