File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -552,6 +552,17 @@ pub struct UserConfig {
552
552
/// [`ChannelManager::get_intercept_scid`]: crate::ln::channelmanager::ChannelManager::get_intercept_scid
553
553
/// [`Event::HTLCIntercepted`]: crate::events::Event::HTLCIntercepted
554
554
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 ,
555
566
}
556
567
557
568
impl Default for UserConfig {
@@ -564,6 +575,7 @@ impl Default for UserConfig {
564
575
accept_inbound_channels : true ,
565
576
manually_accept_inbound_channels : false ,
566
577
accept_intercept_htlcs : false ,
578
+ accept_mpp_keysend : false ,
567
579
}
568
580
}
569
581
}
You can’t perform that action at this time.
0 commit comments