From 7dbd196dc5b105e20ab896174f14e1272c2e05de Mon Sep 17 00:00:00 2001 From: Andrew Luka Date: Sun, 19 Apr 2026 16:54:46 +0300 Subject: [PATCH] apollo_consensus_orchestrator_config: rename validate_price_per_height to validate_dynamic_config --- crates/apollo_consensus_orchestrator_config/src/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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