Skip to content

Commit

Permalink
fixup! Add Api impl for ListForwardedPayments.
Browse files Browse the repository at this point in the history
  • Loading branch information
G8XSU committed Dec 13, 2024
1 parent f73a54c commit ad9f221
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ldk-server/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -93,6 +96,9 @@ impl Service<Request<Incoming>> 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 {
Expand Down

0 comments on commit ad9f221

Please sign in to comment.