From 66875e553ca5b23da3ab0a9eb9e1534b6dba9095 Mon Sep 17 00:00:00 2001 From: Erik De Smedt Date: Wed, 17 Apr 2024 09:56:14 +0200 Subject: [PATCH] TODO: Ensure we remember to update the fee-rate --- plugins/lsps-server/src/lsps1/hooks/invoice_payment.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/lsps-server/src/lsps1/hooks/invoice_payment.rs b/plugins/lsps-server/src/lsps1/hooks/invoice_payment.rs index d562a5f..610812a 100644 --- a/plugins/lsps-server/src/lsps1/hooks/invoice_payment.rs +++ b/plugins/lsps-server/src/lsps1/hooks/invoice_payment.rs @@ -76,7 +76,8 @@ pub(crate) async fn invoice_payment( .checked_add(&order_details.lsp_balance_sat) .context("Overflow when computing channel capacity")?; - // Adjust the fee-rate based on confirms withing blocks + // Adjust the fee-rate based on funding_confirms_within_blocks + // TODO // Get the mindepth from the config let mindepth = plugin @@ -88,10 +89,10 @@ pub(crate) async fn invoice_payment( let channel_details = ChannelDetails { peer_id: order_details.client_node_id, - amount: amount, + amount, feerate: None, announce: Some(order_details.announce_channel), - mindepth: mindepth, + mindepth, push_msat: Some(order_details.client_balance_sat), reserve: Some(SatAmount::new(0)), close_to: None,