[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 01/02: comment
From: |
gnunet |
Subject: |
[taler-wallet-core] 01/02: comment |
Date: |
Tue, 22 Jun 2021 15:30:58 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
commit c51b372abeba8cab9500d6cc7198ba38bee30737
Author: Florian Dold <florian@dold.me>
AuthorDate: Tue Jun 22 14:55:54 2021 +0200
comment
---
packages/taler-wallet-core/src/operations/pay.ts | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/packages/taler-wallet-core/src/operations/pay.ts
b/packages/taler-wallet-core/src/operations/pay.ts
index e662ee72..71f11c96 100644
--- a/packages/taler-wallet-core/src/operations/pay.ts
+++ b/packages/taler-wallet-core/src/operations/pay.ts
@@ -368,6 +368,15 @@ export async function getCandidatePayCoins(
};
}
+/**
+ * Apply a coin selection to the database. Marks coins as spent
+ * and creates a refresh session for the remaining amount.
+ *
+ * FIXME: This does not deal well with conflicting spends!
+ * When two payments are made in parallel, the same coin can be selected
+ * for two payments.
+ * However, this is a situation that can also happen via sync.
+ */
export async function applyCoinSpend(
ws: InternalWalletState,
tx: GetReadWriteAccess<{
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.