X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FRoute.ts;fp=ts%2Fstructs%2FRoute.ts;h=e8d32809419fc467438833f22a9cbf6da29d564a;hb=fed2245c60159f6c074c9ed5c0f3ce273ad9841b;hp=d54afc71e9b622a61567df2fe901a3a57cd33884;hpb=e9c2970adecaa14b3e83e11eb160a7bcbdae20da;p=ldk-java diff --git a/ts/structs/Route.ts b/ts/structs/Route.ts index d54afc71..e8d32809 100644 --- a/ts/structs/Route.ts +++ b/ts/structs/Route.ts @@ -21,6 +21,7 @@ import * as bindings from '../bindings' // TODO: figure out location public Route clone() { number ret = bindings.Route_clone(this.ptr); const ret_hu_conv: Route = new Route(null, ret); + ret_hu_conv.ptrs_to.add(this); return ret_hu_conv; } @@ -32,6 +33,7 @@ import * as bindings from '../bindings' // TODO: figure out location public static Route constructor_new(RouteHop[][] paths_arg) { number ret = bindings.Route_new((number[][])Arrays.stream(paths_arg).map(arr_conv_12 -> (number[])Arrays.stream(arr_conv_12).map(arr_conv_10 -> arr_conv_10 == null ? 0 : arr_conv_10.ptr & ~1).toArray()).toArray()); const ret_hu_conv: Route = new Route(null, ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); /* TODO 2 RouteHop[] */; return ret_hu_conv; }