if (ptr != 0) { bindings.ChannelHandshakeConfig_free(ptr); }
}
- public ChannelHandshakeConfig clone() {
- long ret = bindings.ChannelHandshakeConfig_clone(this.ptr);
- ChannelHandshakeConfig ret_hu_conv = new ChannelHandshakeConfig(null, ret);
- return ret_hu_conv;
- }
-
public int get_minimum_depth() {
int ret = bindings.ChannelHandshakeConfig_get_minimum_depth(this.ptr);
return ret;
public static ChannelHandshakeConfig constructor_new(int minimum_depth_arg, short our_to_self_delay_arg, long our_htlc_minimum_msat_arg) {
long ret = bindings.ChannelHandshakeConfig_new(minimum_depth_arg, our_to_self_delay_arg, our_htlc_minimum_msat_arg);
ChannelHandshakeConfig ret_hu_conv = new ChannelHandshakeConfig(null, ret);
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ return ret_hu_conv;
+ }
+
+ public ChannelHandshakeConfig clone() {
+ long ret = bindings.ChannelHandshakeConfig_clone(this.ptr);
+ ChannelHandshakeConfig ret_hu_conv = new ChannelHandshakeConfig(null, ret);
+ ret_hu_conv.ptrs_to.add(this);
return ret_hu_conv;
}
public static ChannelHandshakeConfig constructor_default() {
long ret = bindings.ChannelHandshakeConfig_default();
ChannelHandshakeConfig ret_hu_conv = new ChannelHandshakeConfig(null, ret);
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
return ret_hu_conv;
}