pub struct Config {
pub storage_dir_path: String,
pub network: Network,
pub listening_address: Option<NetAddress>,
pub default_cltv_expiry_delta: u32,
pub onchain_wallet_sync_interval_secs: u64,
pub wallet_sync_interval_secs: u64,
pub fee_rate_cache_update_interval_secs: u64,
pub trusted_peers_0conf: Vec<PublicKey>,
pub log_level: LogLevel,
}
Expand description
Represents the configuration of an Node
instance.
Defaults
Parameter | Value |
---|---|
storage_dir_path | /tmp/ldk_node/ |
network | Bitcoin |
listening_address | None |
default_cltv_expiry_delta | 144 |
onchain_wallet_sync_interval_secs | 80 |
wallet_sync_interval_secs | 30 |
fee_rate_cache_update_interval_secs | 600 |
trusted_peers_0conf | [] |
log_level | Debug |
Fields§
§storage_dir_path: String
The path where the underlying LDK and BDK persist their data.
network: Network
The used Bitcoin network.
listening_address: Option<NetAddress>
The IP address and TCP port the node will listen on.
default_cltv_expiry_delta: u32
The default CLTV expiry delta to be used for payments.
onchain_wallet_sync_interval_secs: u64
The time in-between background sync attempts of the onchain wallet, in seconds.
Note: A minimum of 10 seconds is always enforced.
wallet_sync_interval_secs: u64
The time in-between background sync attempts of the LDK wallet, in seconds.
Note: A minimum of 10 seconds is always enforced.
fee_rate_cache_update_interval_secs: u64
The time in-between background update attempts to our fee rate cache, in seconds.
Note: A minimum of 10 seconds is always enforced.
trusted_peers_0conf: Vec<PublicKey>
A list of peers that we allow to establish zero confirmation channels to us.
Note: Allowing payments via zero-confirmation channels is potentially insecure if the funding transaction ends up never being confirmed on-chain. Zero-confirmation channels should therefore only be accepted from trusted peers.
log_level: LogLevel
The level at which we log messages.
Any messages below this level will be excluded from the logs.