[Java] Update auto-generated Java bindings
[ldk-java] / src / main / java / org / ldk / structs / ChannelReady.java
index c3eb0ca2a3684ace5ae35e07328e2a48885246c4..7ed5ab3462767113caf5ad170f33f185b76683d2 100644 (file)
@@ -9,7 +9,9 @@ import javax.annotation.Nullable;
 
 
 /**
- * A channel_ready message to be sent or received from a peer
+ * A [`channel_ready`] message to be sent to or received from a peer.
+ * 
+ * [`channel_ready`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-channel_ready-message
  */
 @SuppressWarnings("unchecked") // We correctly assign various generic arrays
 public class ChannelReady extends CommonBase {
@@ -57,8 +59,10 @@ public class ChannelReady extends CommonBase {
        }
 
        /**
-        * If set, provides a short_channel_id alias for this channel. The sender will accept payments
-        * to be forwarded over this SCID and forward them to this messages' recipient.
+        * If set, provides a `short_channel_id` alias for this channel.
+        * 
+        * The sender will accept payments to be forwarded over this SCID and forward them to this
+        * messages' recipient.
         */
        public Option_u64Z get_short_channel_id_alias() {
                long ret = bindings.ChannelReady_get_short_channel_id_alias(this.ptr);
@@ -70,13 +74,16 @@ public class ChannelReady extends CommonBase {
        }
 
        /**
-        * If set, provides a short_channel_id alias for this channel. The sender will accept payments
-        * to be forwarded over this SCID and forward them to this messages' recipient.
+        * If set, provides a `short_channel_id` alias for this channel.
+        * 
+        * The sender will accept payments to be forwarded over this SCID and forward them to this
+        * messages' recipient.
         */
        public void set_short_channel_id_alias(org.ldk.structs.Option_u64Z val) {
                bindings.ChannelReady_set_short_channel_id_alias(this.ptr, val.ptr);
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(val);
+               if (this != null) { this.ptrs_to.add(val); };
        }
 
        /**
@@ -90,6 +97,7 @@ public class ChannelReady extends CommonBase {
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.ChannelReady ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelReady(null, ret); }
                if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(ret_hu_conv); };
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(short_channel_id_alias_arg); };
                return ret_hu_conv;
        }