Skip to content

Commit

Permalink
More logs
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman committed Mar 26, 2024
1 parent 18bc5ea commit 786cf72
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/nostr_dms.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ async fn handle_event(event: Event, state: AppState) -> anyhow::Result<()> {
.amount_milli_satoshis()
.is_some_and(|amt| amt / 1_000 < MAX_SEND_AMOUNT)
{
info!("Paying invoice: {invoice}");
let mut lightning_client = state.lightning_client.clone();

let response = lightning_client
Expand All @@ -90,6 +91,8 @@ async fn handle_event(event: Event, state: AppState) -> anyhow::Result<()> {
}

return Ok(());
} else {
return Err(anyhow::anyhow!("Invalid invoice amount"));
}
}

Expand Down

0 comments on commit 786cf72

Please sign in to comment.