diff --git a/crates/apollo_consensus_orchestrator_config/src/config.rs b/crates/apollo_consensus_orchestrator_config/src/config.rs index f67a8581a85..0cbe2f948c0 100644 --- a/crates/apollo_consensus_orchestrator_config/src/config.rs +++ b/crates/apollo_consensus_orchestrator_config/src/config.rs @@ -260,7 +260,7 @@ impl Default for ContextStaticConfig { /// Dynamic configuration for the Context struct. #[derive(Debug, Deserialize, Serialize, Clone, PartialEq, Validate)] -#[validate(schema(function = "validate_price_per_height"))] +#[validate(schema(function = "validate_dynamic_config"))] pub struct ContextDynamicConfig { /// Safety margin in milliseconds to make sure that the batcher completes building the proposal /// with enough time for the Fin to be checked by validators. @@ -446,7 +446,7 @@ where serializer.serialize_str(&s) } -fn validate_price_per_height( +fn validate_dynamic_config( config: &ContextDynamicConfig, ) -> Result<(), validator::ValidationError> { // Check that heights are in strictly ascending order using windows