[Java] Update auto-generated Java bindings for 0.0.116
[ldk-java] / src / main / java / org / ldk / structs / UserConfig.java
index 5a96eeaabba017cf4431254d514982dc3046819e..7a3a99a88aae36db71bf80b4194f8e3250dc71ca 100644 (file)
@@ -235,11 +235,47 @@ public class UserConfig extends CommonBase {
                Reference.reachabilityFence(val);
        }
 
+       /**
+        * 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);
+       }
+
        /**
         * Constructs a new UserConfig given each field
         */
-       public static UserConfig of(org.ldk.structs.ChannelHandshakeConfig channel_handshake_config_arg, org.ldk.structs.ChannelHandshakeLimits channel_handshake_limits_arg, org.ldk.structs.ChannelConfig channel_config_arg, boolean accept_forwards_to_priv_channels_arg, boolean accept_inbound_channels_arg, boolean manually_accept_inbound_channels_arg, boolean accept_intercept_htlcs_arg) {
-               long ret = bindings.UserConfig_new(channel_handshake_config_arg == null ? 0 : channel_handshake_config_arg.ptr, channel_handshake_limits_arg == null ? 0 : channel_handshake_limits_arg.ptr, channel_config_arg == null ? 0 : channel_config_arg.ptr, accept_forwards_to_priv_channels_arg, accept_inbound_channels_arg, manually_accept_inbound_channels_arg, accept_intercept_htlcs_arg);
+       public static UserConfig of(org.ldk.structs.ChannelHandshakeConfig channel_handshake_config_arg, org.ldk.structs.ChannelHandshakeLimits channel_handshake_limits_arg, org.ldk.structs.ChannelConfig channel_config_arg, boolean accept_forwards_to_priv_channels_arg, boolean accept_inbound_channels_arg, boolean manually_accept_inbound_channels_arg, boolean accept_intercept_htlcs_arg, boolean accept_mpp_keysend_arg) {
+               long ret = bindings.UserConfig_new(channel_handshake_config_arg == null ? 0 : channel_handshake_config_arg.ptr, channel_handshake_limits_arg == null ? 0 : channel_handshake_limits_arg.ptr, channel_config_arg == null ? 0 : channel_config_arg.ptr, accept_forwards_to_priv_channels_arg, accept_inbound_channels_arg, manually_accept_inbound_channels_arg, accept_intercept_htlcs_arg, accept_mpp_keysend_arg);
                Reference.reachabilityFence(channel_handshake_config_arg);
                Reference.reachabilityFence(channel_handshake_limits_arg);
                Reference.reachabilityFence(channel_config_arg);
@@ -247,6 +283,7 @@ public class UserConfig extends CommonBase {
                Reference.reachabilityFence(accept_inbound_channels_arg);
                Reference.reachabilityFence(manually_accept_inbound_channels_arg);
                Reference.reachabilityFence(accept_intercept_htlcs_arg);
+               Reference.reachabilityFence(accept_mpp_keysend_arg);
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.UserConfig ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.UserConfig(null, ret); }
                if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(ret_hu_conv); };