+ Reference.reachabilityFence(timestamp);
+ Reference.reachabilityFence(features);
+ Reference.reachabilityFence(node_id_1);
+ Reference.reachabilityFence(node_id_2);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ Result_NoneLightningErrorZ ret_hu_conv = Result_NoneLightningErrorZ.constr_from_ptr(ret);
+ if (this != null) { this.ptrs_to.add(features); };
+ return ret_hu_conv;
+ }
+
+ /**
+ * Marks a channel in the graph as failed permanently.
+ *
+ * The channel and any node for which this was their last channel are removed from the graph.
+ */
+ public void channel_failed_permanent(long short_channel_id) {
+ bindings.NetworkGraph_channel_failed_permanent(this.ptr, short_channel_id);
+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(short_channel_id);
+ }
+
+ /**
+ * Marks a node in the graph as permanently failed, effectively removing it and its channels
+ * from local storage.
+ */
+ public void node_failed_permanent(byte[] node_id) {
+ bindings.NetworkGraph_node_failed_permanent(this.ptr, InternalUtils.check_arr_len(node_id, 33));
+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(node_id);