X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FEvent.java;h=abc24cecb67d30afd7de75a275f0ebed81e4fa28;hb=276893d3b8bd3fcb2bb10e3cab73a69d34831909;hp=9e3ee3f2aeacd95e073b9953c3302333d105d1a6;hpb=aa0e2aade37133339f4113a0cd7465b111f0a0d0;p=ldk-java diff --git a/src/main/java/org/ldk/structs/Event.java b/src/main/java/org/ldk/structs/Event.java index 9e3ee3f2..abc24cec 100644 --- a/src/main/java/org/ldk/structs/Event.java +++ b/src/main/java/org/ldk/structs/Event.java @@ -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; } } }