+ @Override public long channel_penalty_msat(long short_channel_id, long source, long target) {
+ NodeId source_hu_conv = null; if (source < 0 || source > 4096) { source_hu_conv = new NodeId(null, source); }
+ NodeId target_hu_conv = null; if (target < 0 || target > 4096) { target_hu_conv = new NodeId(null, target); }
+ long ret = arg.channel_penalty_msat(short_channel_id, source_hu_conv, target_hu_conv);
+ return ret;
+ }
+ @Override public void payment_path_failed(long[] path, long short_channel_id) {
+ RouteHop[] path_conv_10_arr = new RouteHop[path.length];
+ for (int k = 0; k < path.length; k++) {
+ long path_conv_10 = path[k];
+ RouteHop path_conv_10_hu_conv = null; if (path_conv_10 < 0 || path_conv_10 > 4096) { path_conv_10_hu_conv = new RouteHop(null, path_conv_10); }
+ path_conv_10_hu_conv.ptrs_to.add(this);
+ path_conv_10_arr[k] = path_conv_10_hu_conv;
+ }
+ arg.payment_path_failed(path_conv_10_arr, short_channel_id);
+ }
+ @Override public byte[] write() {
+ byte[] ret = arg.write();