- public void set_cltv_expiry(UpdateAddHTLC this_ptr, int val) {
- bindings.UpdateAddHTLC_set_cltv_expiry(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
- this.ptrs_to.add(this_ptr);
+ /**
+ * The expiry height of the HTLC
+ */
+ public void set_cltv_expiry(int val) {
+ bindings.UpdateAddHTLC_set_cltv_expiry(this.ptr, val);
+ }
+
+ /**
+ * Creates a copy of the UpdateAddHTLC
+ */
+ public UpdateAddHTLC clone() {
+ long ret = bindings.UpdateAddHTLC_clone(this.ptr);
+ UpdateAddHTLC ret_hu_conv = new UpdateAddHTLC(null, ret);
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;