X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FReadOnlyNetworkGraph.ts;h=b0a1e25efb38372f64733e481df42246ac1daad3;hb=0fee03a8095f5599f8eccd920c1b1af6b3a20260;hp=54cb431a3ca1126e4bd90eeee466bee445ff15a5;hpb=7d6be8a5ef72a4ebfe07660cce55f43f6cc30b80;p=ldk-java diff --git a/ts/structs/ReadOnlyNetworkGraph.ts b/ts/structs/ReadOnlyNetworkGraph.ts index 54cb431a..b0a1e25e 100644 --- a/ts/structs/ReadOnlyNetworkGraph.ts +++ b/ts/structs/ReadOnlyNetworkGraph.ts @@ -18,4 +18,11 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.ReadOnlyNetworkGraph_free(this.ptr); } } + public Option_CVec_NetAddressZZ get_addresses(Uint8Array pubkey) { + number ret = bindings.ReadOnlyNetworkGraph_get_addresses(this.ptr, InternalUtils.check_arr_len(pubkey, 33)); + Option_CVec_NetAddressZZ ret_hu_conv = Option_CVec_NetAddressZZ.constr_from_ptr(ret); + ret_hu_conv.ptrs_to.add(this); + return ret_hu_conv; + } + }