diff --git a/crates/starknet_sequencer_node/src/config/component_execution_config.rs b/crates/starknet_sequencer_node/src/config/component_execution_config.rs index ca3bd2eb2f0..1757c8b1f63 100644 --- a/crates/starknet_sequencer_node/src/config/component_execution_config.rs +++ b/crates/starknet_sequencer_node/src/config/component_execution_config.rs @@ -69,6 +69,29 @@ impl Default for ReactiveComponentExecutionConfig { } } +/// Active component configuration. +#[derive(Clone, Debug, Serialize, Deserialize, Validate, PartialEq)] +pub struct ActiveComponentExecutionConfig { + pub execution_mode: ActiveComponentExecutionMode, +} + +impl SerializeConfig for ActiveComponentExecutionConfig { + fn dump(&self) -> BTreeMap { + BTreeMap::from_iter([ser_param( + "execution_mode", + &self.execution_mode, + "The component execution mode.", + ParamPrivacyInput::Public, + )]) + } +} + +impl Default for ActiveComponentExecutionConfig { + fn default() -> Self { + Self { execution_mode: ActiveComponentExecutionMode::Enabled } + } +} + /// Specific components default configurations. impl ReactiveComponentExecutionConfig { pub fn gateway_default_config() -> Self {