Trait lightning_signer::policy::Policy
source · pub trait Policy {
// Required methods
fn policy_error(
&self,
_tag: String,
msg: String
) -> Result<(), ValidationError>;
fn global_velocity_control(&self) -> VelocityControlSpec;
}
Expand description
An enforcement policy
Required Methods§
sourcefn policy_error(&self, _tag: String, msg: String) -> Result<(), ValidationError>
fn policy_error(&self, _tag: String, msg: String) -> Result<(), ValidationError>
A policy error has occured.
Policy errors can be converted to warnings by returning Ok(())
sourcefn global_velocity_control(&self) -> VelocityControlSpec
fn global_velocity_control(&self) -> VelocityControlSpec
Velocity control to apply to the entire node