- ChannelTransactionParameters ret_hu_conv = new ChannelTransactionParameters(null, ret);
- ret_hu_conv.ptrs_to.add(holder_pubkeys_arg);
- ret_hu_conv.ptrs_to.add(counterparty_parameters_arg);
- ret_hu_conv.ptrs_to.add(funding_outpoint_arg);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ ChannelTransactionParameters ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new ChannelTransactionParameters(null, ret); }
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Creates a copy of the ChannelTransactionParameters
+ */
+ public ChannelTransactionParameters clone() {
+ long ret = bindings.ChannelTransactionParameters_clone(this.ptr);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ ChannelTransactionParameters ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new ChannelTransactionParameters(null, ret); }
+ ret_hu_conv.ptrs_to.add(this);