- public static ChannelTransactionParameters constructor_new(ChannelPublicKeys holder_pubkeys_arg, short holder_selected_contest_delay_arg, boolean is_outbound_from_holder_arg, CounterpartyChannelTransactionParameters counterparty_parameters_arg, OutPoint funding_outpoint_arg) {
- long ret = bindings.ChannelTransactionParameters_new(holder_pubkeys_arg == null ? 0 : holder_pubkeys_arg.ptr & ~1, holder_selected_contest_delay_arg, is_outbound_from_holder_arg, counterparty_parameters_arg == null ? 0 : counterparty_parameters_arg.ptr & ~1, funding_outpoint_arg == null ? 0 : funding_outpoint_arg.ptr & ~1);
- ChannelTransactionParameters ret_hu_conv = new ChannelTransactionParameters(null, ret);
+ /**
+ * Are anchors used for this channel. Boolean is serialization backwards-compatible
+ */
+ public void set_opt_anchors(org.ldk.enums.COption_NoneZ val) {
+ bindings.ChannelTransactionParameters_set_opt_anchors(this.ptr, val);
+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(val);
+ }
+
+ /**
+ * Constructs a new ChannelTransactionParameters given each field
+ */
+ public static ChannelTransactionParameters of(ChannelPublicKeys holder_pubkeys_arg, short holder_selected_contest_delay_arg, boolean is_outbound_from_holder_arg, CounterpartyChannelTransactionParameters counterparty_parameters_arg, OutPoint funding_outpoint_arg, org.ldk.enums.COption_NoneZ opt_anchors_arg) {
+ long ret = bindings.ChannelTransactionParameters_new(holder_pubkeys_arg == null ? 0 : holder_pubkeys_arg.ptr & ~1, holder_selected_contest_delay_arg, is_outbound_from_holder_arg, counterparty_parameters_arg == null ? 0 : counterparty_parameters_arg.ptr & ~1, funding_outpoint_arg == null ? 0 : funding_outpoint_arg.ptr & ~1, opt_anchors_arg);
+ Reference.reachabilityFence(holder_pubkeys_arg);
+ Reference.reachabilityFence(holder_selected_contest_delay_arg);
+ Reference.reachabilityFence(is_outbound_from_holder_arg);
+ Reference.reachabilityFence(counterparty_parameters_arg);
+ Reference.reachabilityFence(funding_outpoint_arg);
+ Reference.reachabilityFence(opt_anchors_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); }