Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/apollo_consensus_orchestrator_config/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
Loading