mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-11-20 02:57:42 +01:00
nip60: fixes to pay and stuff because it was very broken.
This commit is contained in:
@@ -180,6 +180,7 @@ func (w *Wallet) getProofsForSending(
|
||||
part.tokens = make([]Token, 0, 3)
|
||||
part.tokenIndexes = make([]int, 0, 3)
|
||||
part.proofs = make(cashu.Proofs, 0, 7)
|
||||
part.mint = token.Mint
|
||||
}
|
||||
|
||||
part.tokens = append(part.tokens, token)
|
||||
@@ -193,6 +194,8 @@ func (w *Wallet) getProofsForSending(
|
||||
return part, fee, nil
|
||||
}
|
||||
}
|
||||
|
||||
byMint[token.Mint] = part
|
||||
}
|
||||
|
||||
// if we got here it's because we didn't get enough proofs from the same mint
|
||||
|
||||
Reference in New Issue
Block a user