X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Futil%2Fconfig.rs;h=8f1f77b32aadd2f29b76be8fb6efc6290f2cb55a;hb=25a707314f70fc2f59488d4de34facb1428fc06d;hp=758306c002d1a031199b0ca38b43a5decddca4ac;hpb=f068df03c5c400ca7942e4491809239710ebe472;p=rust-lightning diff --git a/lightning/src/util/config.rs b/lightning/src/util/config.rs index 758306c0..8f1f77b3 100644 --- a/lightning/src/util/config.rs +++ b/lightning/src/util/config.rs @@ -607,6 +607,17 @@ pub struct UserConfig { /// [`ChannelManager::get_intercept_scid`]: crate::ln::channelmanager::ChannelManager::get_intercept_scid /// [`Event::HTLCIntercepted`]: crate::events::Event::HTLCIntercepted pub accept_intercept_htlcs: bool, + /// If this is set to false, when receiving a keysend payment we'll fail it if it has multiple + /// parts. If this is set to true, we'll accept the payment. + /// + /// Setting this to true will break backwards compatibility upon downgrading to an LDK + /// version < 0.0.116 while receiving an MPP keysend. If we have already received an MPP + /// keysend, downgrading will cause us to fail to deserialize [`ChannelManager`]. + /// + /// Default value: false. + /// + /// [`ChannelManager`]: crate::ln::channelmanager::ChannelManager + pub accept_mpp_keysend: bool, } impl Default for UserConfig { @@ -619,6 +630,7 @@ impl Default for UserConfig { accept_inbound_channels: true, manually_accept_inbound_channels: false, accept_intercept_htlcs: false, + accept_mpp_keysend: false, } } }