- public void payment_path_successful(RouteHop[] path) {
- bindings.Score_payment_path_successful(this.ptr, path != null ? Arrays.stream(path).mapToLong(path_conv_10 -> path_conv_10 == null ? 0 : path_conv_10.ptr & ~1).toArray() : null);
+ public void payment_path_successful(org.ldk.structs.Path path) {
+ bindings.Score_payment_path_successful(this.ptr, path == null ? 0 : path.ptr);
+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(path);
+ if (this != null) { this.ptrs_to.add(path); };
+ }
+
+ /**
+ * Handles updating channel penalties after a probe over the given path failed.
+ */
+ public void probe_failed(org.ldk.structs.Path path, long short_channel_id) {
+ bindings.Score_probe_failed(this.ptr, path == null ? 0 : path.ptr, short_channel_id);
+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(path);
+ Reference.reachabilityFence(short_channel_id);
+ if (this != null) { this.ptrs_to.add(path); };
+ }
+
+ /**
+ * Handles updating channel penalties after a probe over the given path succeeded.
+ */
+ public void probe_successful(org.ldk.structs.Path path) {
+ bindings.Score_probe_successful(this.ptr, path == null ? 0 : path.ptr);