Skip to content

Commit

Permalink
TODO: Ensure we remember to update the fee-rate
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikDeSmedt committed Apr 17, 2024
1 parent 32d4c4b commit 66875e5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plugins/lsps-server/src/lsps1/hooks/invoice_payment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down

0 comments on commit 66875e5

Please sign in to comment.