@@ -247,6 +247,9 @@ pub struct Config {
247
247
/// should therefore only be accepted from trusted peers.
248
248
pub trusted_peers_0conf : Vec < PublicKey > ,
249
249
/// The liquidity factor by which we filter the outgoing channels used for sending probes.
250
+ ///
251
+ /// Channels with available liquidity less than the required amount times this value won't be
252
+ /// used to send pre-flight probes.
250
253
pub probing_liquidity_limit_multiplier : u64 ,
251
254
/// The level at which we log messages.
252
255
///
@@ -1313,8 +1316,8 @@ impl<K: KVStore + Sync + Send + 'static> Node<K> {
1313
1316
/// Otherwise, there is a chance the probe could take up some liquidity needed to complete the
1314
1317
/// actual payment. Users should therefore be cautious and might avoid sending probes if
1315
1318
/// liquidity is scarce and/or they don't expect the probe to return before they send the
1316
- /// payment. To mitigate this issue, channels whose available liquidity is less than the
1317
- /// required amount times [`Config::probing_liquidity_limit_multiplier`] won't be used to send
1319
+ /// payment. To mitigate this issue, channels with available liquidity less than the required
1320
+ /// amount times [`Config::probing_liquidity_limit_multiplier`] won't be used to send
1318
1321
/// pre-flight probes.
1319
1322
pub fn send_payment_probe ( & self , invoice : & Bolt11Invoice ) -> Result < ( ) , Error > {
1320
1323
let rt_lock = self . runtime . read ( ) . unwrap ( ) ;
@@ -1358,8 +1361,8 @@ impl<K: KVStore + Sync + Send + 'static> Node<K> {
1358
1361
/// Otherwise, there is a chance the probe could take up some liquidity needed to complete the
1359
1362
/// actual payment. Users should therefore be cautious and might avoid sending probes if
1360
1363
/// liquidity is scarce and/or they don't expect the probe to return before they send the
1361
- /// payment. To mitigate this issue, channels whose available liquidity is less than the
1362
- /// required amount times [`Config::probing_liquidity_limit_multiplier`] won't be used to send
1364
+ /// payment. To mitigate this issue, channels with available liquidity less than the required
1365
+ /// amount times [`Config::probing_liquidity_limit_multiplier`] won't be used to send
1363
1366
/// pre-flight probes.
1364
1367
pub fn send_spontaneous_payment_probe (
1365
1368
& self , amount_msat : u64 , node_id : PublicKey ,
0 commit comments