Update bindings to latest upstream.
[ldk-java] / src / main / java / org / ldk / structs / Event.java
index 9e3ee3f2aeacd95e073b9953c3302333d105d1a6..abc24cecb67d30afd7de75a275f0ebed81e4fa28 100644 (file)
@@ -59,6 +59,7 @@ public class Event extends CommonBase {
                        super(null, ptr);
                        long funding_txo = obj.funding_txo;
                        OutPoint funding_txo_hu_conv = new OutPoint(null, funding_txo);
+                       funding_txo_hu_conv.ptrs_to.add(this);
                        this.funding_txo = funding_txo_hu_conv;
                        this.user_channel_id = obj.user_channel_id;
                }
@@ -102,13 +103,14 @@ public class Event extends CommonBase {
                private SpendableOutputs(long ptr, bindings.LDKEvent.SpendableOutputs obj) {
                        super(null, ptr);
                        long[] outputs = obj.outputs;
-                       SpendableOutputDescriptor[] arr_conv_27_arr = new SpendableOutputDescriptor[outputs.length];
+                       SpendableOutputDescriptor[] outputs_conv_27_arr = new SpendableOutputDescriptor[outputs.length];
                        for (int b = 0; b < outputs.length; b++) {
-                               long arr_conv_27 = outputs[b];
-                               SpendableOutputDescriptor arr_conv_27_hu_conv = SpendableOutputDescriptor.constr_from_ptr(arr_conv_27);
-                               arr_conv_27_arr[b] = arr_conv_27_hu_conv;
+                               long outputs_conv_27 = outputs[b];
+                               SpendableOutputDescriptor outputs_conv_27_hu_conv = SpendableOutputDescriptor.constr_from_ptr(outputs_conv_27);
+                               outputs_conv_27_hu_conv.ptrs_to.add(this);
+                               outputs_conv_27_arr[b] = outputs_conv_27_hu_conv;
                        }
-                       this.outputs = arr_conv_27_arr;
+                       this.outputs = outputs_conv_27_arr;
                }
        }
 }