+ /**
+ * 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
+ */
+ public boolean get_accept_mpp_keysend() {
+ boolean ret = bindings.UserConfig_get_accept_mpp_keysend(this.ptr);
+ Reference.reachabilityFence(this);
+ return ret;
+ }
+
+ /**
+ * 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
+ */
+ public void set_accept_mpp_keysend(boolean val) {
+ bindings.UserConfig_set_accept_mpp_keysend(this.ptr, val);
+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(val);
+ }
+