瀏覽代碼

Exit on paid invoices only for bolt11

Cesar Rodas 3 月之前
父節點
當前提交
7b64011664
共有 1 個文件被更改,包括 3 次插入1 次删除
  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(());
         }