- public void set_cltv_expiry(HTLCOutputInCommitment this_ptr, int val) {
- bindings.HTLCOutputInCommitment_set_cltv_expiry(this_ptr.ptr & ~1, val);
- this.ptrs_to.add(this_ptr);
+ /**
+ * The hash of the preimage which unlocks this HTLC.
+ */
+ public void set_payment_hash(byte[] val) {
+ bindings.HTLCOutputInCommitment_set_payment_hash(this.ptr, val);
+ }
+
+ /**
+ * Creates a copy of the HTLCOutputInCommitment
+ */
+ public HTLCOutputInCommitment clone() {
+ long ret = bindings.HTLCOutputInCommitment_clone(this.ptr);
+ HTLCOutputInCommitment ret_hu_conv = new HTLCOutputInCommitment(null, ret);
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;