Browse Source

Exit on paid invoices only for bolt11

Cesar Rodas 1 month ago
parent
commit
7b64011664
1 changed files with 3 additions and 1 deletions
  1. 3 1
      crates/cdk/src/mint/ln.rs

+ 3 - 1
crates/cdk/src/mint/ln.rs

@@ -53,7 +53,9 @@ impl Mint {
 
         let current_state = quote.state();
 
-        if current_state == MintQuoteState::Issued || current_state == MintQuoteState::Paid {
+        if quote.payment_method == PaymentMethod::Bolt11
+            && (current_state == MintQuoteState::Issued || current_state == MintQuoteState::Paid)
+        {
             return Ok(());
         }