fix: allow paid and issued bolt12 quotes to settle internally

This commit is contained in:
gudnuf
2025-08-13 19:10:20 -07:00
parent 8578e8532b
commit 325afd75f7

View File

@@ -703,8 +703,9 @@ impl Mint {
};
// Mint quote has already been settled, proofs should not be burned or held.
if mint_quote.state() == MintQuoteState::Issued
|| mint_quote.state() == MintQuoteState::Paid
if (mint_quote.state() == MintQuoteState::Issued
|| mint_quote.state() == MintQuoteState::Paid)
&& mint_quote.payment_method == PaymentMethod::Bolt11
{
return Err(Error::RequestAlreadyPaid);
}