From ad9f221b2dac8116100be81d3b08aeaf558cf503 Mon Sep 17 00:00:00 2001 From: G8XSU <3442979+G8XSU@users.noreply.github.com> Date: Fri, 13 Dec 2024 14:00:21 -0800 Subject: [PATCH] fixup! Add Api impl for ListForwardedPayments. --- ldk-server/src/service.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ldk-server/src/service.rs b/ldk-server/src/service.rs index 8e3d1ef..16ec58d 100644 --- a/ldk-server/src/service.rs +++ b/ldk-server/src/service.rs @@ -18,6 +18,9 @@ use crate::api::get_payment_details::{ handle_get_payment_details_request, GET_PAYMENT_DETAILS_PATH, }; use crate::api::list_channels::{handle_list_channels_request, LIST_CHANNELS_PATH}; +use crate::api::list_forwarded_payments::{ + handle_list_forwarded_payments_request, LIST_FORWARDED_PAYMENTS_PATH, +}; use crate::api::list_payments::{handle_list_payments_request, LIST_PAYMENTS_PATH}; use crate::api::onchain_receive::{handle_onchain_receive_request, ONCHAIN_RECEIVE_PATH}; use crate::api::onchain_send::{handle_onchain_send_request, ONCHAIN_SEND_PATH}; @@ -93,6 +96,9 @@ impl Service> for NodeService { LIST_PAYMENTS_PATH => { Box::pin(handle_request(context, req, handle_list_payments_request)) }, + LIST_FORWARDED_PAYMENTS_PATH => { + Box::pin(handle_request(context, req, handle_list_forwarded_payments_request)) + }, path => { let error = format!("Unknown request: {}", path).into_bytes(); Box::pin(async {