X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FNetworkGraph.ts;h=7f5908816239a63c92d06d93894115133e01a5a9;hb=fed2245c60159f6c074c9ed5c0f3ce273ad9841b;hp=9729f3317b69ad6f2fd66c741746625605a9aeee;hpb=e9c2970adecaa14b3e83e11eb160a7bcbdae20da;p=ldk-java diff --git a/ts/structs/NetworkGraph.ts b/ts/structs/NetworkGraph.ts index 9729f331..7f590881 100644 --- a/ts/structs/NetworkGraph.ts +++ b/ts/structs/NetworkGraph.ts @@ -32,6 +32,7 @@ import * as bindings from '../bindings' // TODO: figure out location public static NetworkGraph constructor_new(Uint8Array genesis_hash) { number ret = bindings.NetworkGraph_new(genesis_hash); const ret_hu_conv: NetworkGraph = new NetworkGraph(null, ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); return ret_hu_conv; }