Struct lightning_signer::policy::simple_validator::SimplePolicy
source · pub struct SimplePolicy {Show 15 fields
pub min_delay: u16,
pub max_delay: u16,
pub max_channel_size_sat: u64,
pub epsilon_sat: u64,
pub max_htlcs: usize,
pub max_htlc_value_sat: u64,
pub use_chain_state: bool,
pub min_feerate_per_kw: u32,
pub max_feerate_per_kw: u32,
pub require_invoices: bool,
pub enforce_balance: bool,
pub max_routing_fee_msat: u64,
pub dev_flags: Option<PolicyDevFlags>,
pub filter: PolicyFilter,
pub global_velocity_control: VelocityControlSpec,
}
Expand description
A simple policy to configure a SimpleValidator
Fields§
§min_delay: u16
Minimum delay in blocks
max_delay: u16
Maximum delay in blocks
max_channel_size_sat: u64
Maximum channel value in satoshi
epsilon_sat: u64
amounts below this number of satoshi are not considered important
max_htlcs: usize
Maximum number of in-flight HTLCs
max_htlc_value_sat: u64
Maximum value of in-flight HTLCs
use_chain_state: bool
Whether to use knowledge of chain state (e.g. current_height)
min_feerate_per_kw: u32
Minimum feerate
max_feerate_per_kw: u32
Maximum feerate
require_invoices: bool
Require invoices for payments, and disallow keysend
enforce_balance: bool
Enforce holder balance
max_routing_fee_msat: u64
Maximum layer-2 fee
dev_flags: Option<PolicyDevFlags>
Developer flags - DO NOT USE IN PRODUCTION
filter: PolicyFilter
Policy filter
global_velocity_control: VelocityControlSpec
Global velocity control specification
Trait Implementations§
source§impl Clone for SimplePolicy
impl Clone for SimplePolicy
source§fn clone(&self) -> SimplePolicy
fn clone(&self) -> SimplePolicy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Policy for SimplePolicy
impl Policy for SimplePolicy
source§fn 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(())
source§fn global_velocity_control(&self) -> VelocityControlSpec
fn global_velocity_control(&self) -> VelocityControlSpec
Velocity control to apply to the entire node