Skip to content

Commit

Permalink
Allow self payment
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman committed Feb 11, 2024
1 parent 533c26b commit 261f8a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lightning.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ pub async fn pay_lightning(state: AppState, bolt11: &str) -> anyhow::Result<Stri
let response = lightning_client
.send_payment_sync(lnrpc::SendRequest {
payment_request: invoice.to_string(),
allow_self_payment: true,
..Default::default()
})
.await?
Expand Down

0 comments on commit 261f8a5

Please sign in to comment.