nip60: fix receive proof saving, send nil to Processed, do a dedicated kind:5 filter, hack for initial processing race condition.

This commit is contained in:
fiatjaf
2025-01-28 23:47:35 -03:00
parent 794561a3b3
commit 1e76aec884
3 changed files with 9 additions and 3 deletions

View File

@@ -48,7 +48,7 @@ func (w *Wallet) ReceiveToken(ctx context.Context, serializedToken string) error
}
// get new proofs
_, newProofs, err := w.SwapProofs(ctx, source, proofs, proofs.Amount(), swapOpts...)
newProofs, _, err := w.SwapProofs(ctx, source, proofs, proofs.Amount(), swapOpts...)
if err != nil {
return err
}