Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / UnsignedChannelUpdate.java
index 91a5557d2843e32f96435c55b1a7794ad7879fed..5779143763efe6802073b833e2843bcec4f7fdf5 100644 (file)
@@ -31,7 +31,7 @@ public class UnsignedChannelUpdate extends CommonBase {
         * The genesis hash of the blockchain where the channel is to be opened
         */
        public void set_chain_hash(byte[] val) {
-               bindings.UnsignedChannelUpdate_set_chain_hash(this.ptr, val);
+               bindings.UnsignedChannelUpdate_set_chain_hash(this.ptr, InternalUtils.check_arr_len(val, 32));
        }
 
        /**
@@ -153,6 +153,11 @@ public class UnsignedChannelUpdate extends CommonBase {
                bindings.UnsignedChannelUpdate_set_fee_proportional_millionths(this.ptr, val);
        }
 
+       long clone_ptr() {
+               long ret = bindings.UnsignedChannelUpdate_clone_ptr(this.ptr);
+               return ret;
+       }
+
        /**
         * Creates a copy of the UnsignedChannelUpdate
         */