Skip to content

Commit b86e80e

Browse files
apollo_consensus_orchestrator_config: rename validate_price_per_height to validate_dynamic_config
1 parent 2f781aa commit b86e80e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • crates/apollo_consensus_orchestrator_config/src

crates/apollo_consensus_orchestrator_config/src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ impl Default for ContextStaticConfig {
260260

261261
/// Dynamic configuration for the Context struct.
262262
#[derive(Debug, Deserialize, Serialize, Clone, PartialEq, Validate)]
263-
#[validate(schema(function = "validate_price_per_height"))]
263+
#[validate(schema(function = "validate_dynamic_config"))]
264264
pub struct ContextDynamicConfig {
265265
/// Safety margin in milliseconds to make sure that the batcher completes building the proposal
266266
/// with enough time for the Fin to be checked by validators.
@@ -446,7 +446,7 @@ where
446446
serializer.serialize_str(&s)
447447
}
448448

449-
fn validate_price_per_height(
449+
fn validate_dynamic_config(
450450
config: &ContextDynamicConfig,
451451
) -> Result<(), validator::ValidationError> {
452452
// Check that heights are in strictly ascending order using windows

0 commit comments

Comments
 (0)