Skip to content

Commit

Permalink
WIP: config
Browse files Browse the repository at this point in the history
  • Loading branch information
povi committed May 17, 2024
1 parent 4745714 commit 16e416e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions types/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,21 @@ 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,
#[serde(with = "serde_utils::string_or_native")]
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.
Expand Down Expand Up @@ -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(),
Expand All @@ -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(),
}
Expand Down

0 comments on commit 16e416e

Please sign in to comment.