Skip to main content

validate_relayer_health_weight

Function validate_relayer_health_weight 

Source
fn validate_relayer_health_weight(value: f64) -> Result<(), ValidationError>
Expand description

Rejects a negative or non-finite relayer_health_weight. A minimum alone lets NaN and +inf through: health^NaN is NaN, and health^inf zeroes every health below one, either way dropping valid paths from weighted selection.