if (ptr != 0) { bindings.ChannelMonitor_free(ptr); }
}
+ public ChannelMonitor clone() {
+ long ret = bindings.ChannelMonitor_clone(this.ptr);
+ ChannelMonitor ret_hu_conv = new ChannelMonitor(null, ret);
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;
+ }
+
public byte[] write() {
byte[] ret = bindings.ChannelMonitor_write(this.ptr);
return ret;
public TwoTuple<OutPoint, byte[]> get_funding_txo() {
long ret = bindings.ChannelMonitor_get_funding_txo(this.ptr);
long ret_a = bindings.LDKC2Tuple_OutPointScriptZ_get_a(ret);
- OutPoint ret_a_hu_conv = new OutPoint(null, ret_a);;
+ OutPoint ret_a_hu_conv = new OutPoint(null, ret_a);
+ ret_a_hu_conv.ptrs_to.add(this);;
byte[] ret_b = bindings.LDKC2Tuple_OutPointScriptZ_get_b(ret);
TwoTuple<OutPoint, byte[]> ret_conv = new TwoTuple<OutPoint, byte[]>(ret_a_hu_conv, ret_b);
return ret_conv;
for (int o = 0; o < ret.length; o++) {
long arr_conv_14 = ret[o];
MonitorEvent arr_conv_14_hu_conv = new MonitorEvent(null, arr_conv_14);
+ arr_conv_14_hu_conv.ptrs_to.add(this);
arr_conv_14_arr[o] = arr_conv_14_hu_conv;
}
return arr_conv_14_arr;
for (int a = 0; a < arr_conv_46_b.length; a++) {
long arr_conv_26 = arr_conv_46_b[a];
int arr_conv_26_a = bindings.LDKC2Tuple_u32TxOutZ_get_a(arr_conv_26);
- long arr_conv_26_b = bindings.LDKC2Tuple_u32TxOutZ_get_b(arr_conv_26);
+ long arr_conv_26_b = bindings.TxOut_clone(bindings.LDKC2Tuple_u32TxOutZ_get_b(arr_conv_26));
TxOut arr_conv_26_b_conv = new TxOut(null, arr_conv_26_b);;
TwoTuple<Integer, TxOut> arr_conv_26_conv = new TwoTuple<Integer, TxOut>(arr_conv_26_a, arr_conv_26_b_conv);
arr_conv_26_arr[a] = arr_conv_26_conv;