cashubtc / nutshell

Chaumian ecash wallet and mint for Bitcoin
https://docs.cashu.space
MIT License
368 stars 92 forks source link

Mint: Can `clnrest.py` pay the same invoice twice? #569

Open callebtc opened 2 months ago

callebtc commented 2 months ago

Word on the street is that CLN's/v1/pay does not return an error if you try to pay the same invoice again. Before attempting a payment, we should first check if the payment already exists and only attempt a payment if it doesn't.

lollerfirst commented 1 month ago

Are there any instances where the mint could attempt to pay an invoice again?