nip60: don't lose tokens when bolt11 payment fails.

This commit is contained in:
fiatjaf
2026-02-03 19:17:14 -03:00
parent e17995d427
commit beb8a72491
4 changed files with 48 additions and 8 deletions
+3
View File
@@ -153,6 +153,9 @@ func (w *Wallet) getProofsForSending(
) (chosenTokens, uint64, error) {
byMint := make(map[string]chosenTokens)
for t, token := range w.Tokens {
if token.reserved {
continue
}
if fromMint != "" && token.Mint != fromMint {
continue
}