Update auto-updated Java files
[ldk-java] / src / main / java / org / ldk / structs / TrustedClosingTransaction.java
index 65fca265338a0061128a80d300a240ecb13da203..569c7140a874d604fe7c761e0d20a8ff8a71e970 100644 (file)
@@ -4,6 +4,7 @@ import org.ldk.impl.bindings;
 import org.ldk.enums.*;
 import org.ldk.util.*;
 import java.util.Arrays;
+import java.lang.ref.Reference;
 import javax.annotation.Nullable;
 
 
@@ -29,6 +30,7 @@ public class TrustedClosingTransaction extends CommonBase {
         */
        public byte[] built_transaction() {
                byte[] ret = bindings.TrustedClosingTransaction_built_transaction(this.ptr);
+               Reference.reachabilityFence(this);
                return ret;
        }
 
@@ -39,6 +41,9 @@ public class TrustedClosingTransaction extends CommonBase {
         */
        public byte[] get_sighash_all(byte[] funding_redeemscript, long channel_value_satoshis) {
                byte[] ret = bindings.TrustedClosingTransaction_get_sighash_all(this.ptr, funding_redeemscript, channel_value_satoshis);
+               Reference.reachabilityFence(this);
+               Reference.reachabilityFence(funding_redeemscript);
+               Reference.reachabilityFence(channel_value_satoshis);
                return ret;
        }
 
@@ -48,6 +53,10 @@ public class TrustedClosingTransaction extends CommonBase {
         */
        public byte[] sign(byte[] funding_key, byte[] funding_redeemscript, long channel_value_satoshis) {
                byte[] ret = bindings.TrustedClosingTransaction_sign(this.ptr, InternalUtils.check_arr_len(funding_key, 32), funding_redeemscript, channel_value_satoshis);
+               Reference.reachabilityFence(this);
+               Reference.reachabilityFence(funding_key);
+               Reference.reachabilityFence(funding_redeemscript);
+               Reference.reachabilityFence(channel_value_satoshis);
                return ret;
        }