X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FNetworkGraph.ts;h=4f33d5f8cf338efd22b81f5aa3d503d8c67e52bb;hb=1854b5cebef22ace9e9e4dd191f609818df9ce08;hp=e2c2a6f807772dda39a8810c9768852004a62221;hpb=5fd405f7a48aaeca779c45c88ec6b3d3d3dbf0e4;p=ldk-java diff --git a/ts/structs/NetworkGraph.ts b/ts/structs/NetworkGraph.ts index e2c2a6f8..4f33d5f8 100644 --- a/ts/structs/NetworkGraph.ts +++ b/ts/structs/NetworkGraph.ts @@ -93,6 +93,10 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.NetworkGraph_fail_node(this.ptr, InternalUtils.check_arr_len(_node_id, 33), is_permanent); } + public void remove_stale_channels_with_time(number current_time_unix) { + bindings.NetworkGraph_remove_stale_channels_with_time(this.ptr, current_time_unix); + } + public Result_NoneLightningErrorZ update_channel(ChannelUpdate msg) { number ret = bindings.NetworkGraph_update_channel(this.ptr, msg == null ? 0 : msg.ptr & ~1); Result_NoneLightningErrorZ ret_hu_conv = Result_NoneLightningErrorZ.constr_from_ptr(ret);