X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FNetworkGraph.ts;h=4f33d5f8cf338efd22b81f5aa3d503d8c67e52bb;hb=0fee03a8095f5599f8eccd920c1b1af6b3a20260;hp=e2c2a6f807772dda39a8810c9768852004a62221;hpb=f3e670e9341decac613d33fc52febf19cea32f20;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);