Skip to content

Commit e2ae7e0

Browse files
committed
Add accept_mpp_keysend to UserConfig
1 parent 29aaeb0 commit e2ae7e0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lightning/src/util/config.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,17 @@ pub struct UserConfig {
552552
/// [`ChannelManager::get_intercept_scid`]: crate::ln::channelmanager::ChannelManager::get_intercept_scid
553553
/// [`Event::HTLCIntercepted`]: crate::events::Event::HTLCIntercepted
554554
pub accept_intercept_htlcs: bool,
555+
/// If this is set to false, when going to claim a payment we'll fail a keysend payment if
556+
/// it has multiple parts. If this is set to true, we'll claim the payment.
557+
///
558+
/// For LDK versions prior to 0.0.116 we act as if this were set to false, so on downgrades
559+
/// [`ChannelManager::claim_funds`] will fail any previously received multi-part keysend
560+
/// payments.
561+
///
562+
/// Default value: false.
563+
///
564+
/// [`ChannelManager::claim_funds`]: crate::ln::channelmanager::ChannelManager::claim_funds
565+
pub accept_mpp_keysend: bool,
555566
}
556567

557568
impl Default for UserConfig {
@@ -564,6 +575,7 @@ impl Default for UserConfig {
564575
accept_inbound_channels: true,
565576
manually_accept_inbound_channels: false,
566577
accept_intercept_htlcs: false,
578+
accept_mpp_keysend: false,
567579
}
568580
}
569581
}

0 commit comments

Comments
 (0)