import org.ldk.enums.*;
import org.ldk.util.*;
import java.util.Arrays;
+import java.lang.ref.Reference;
import javax.annotation.Nullable;
*/
public byte[] built_transaction() {
byte[] ret = bindings.TrustedClosingTransaction_built_transaction(this.ptr);
+ Reference.reachabilityFence(this);
return ret;
}
*/
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;
}
*/
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;
}