Эх сурвалжийг харах

Exit on paid invoices only for bolt11

Cesar Rodas 1 сар өмнө
parent
commit
7b64011664

+ 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(());
         }