gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] 02/02: wallet-core: do not process payments in dialo


From: gnunet
Subject: [taler-wallet-core] 02/02: wallet-core: do not process payments in dialog states
Date: Wed, 10 Jan 2024 22:48:10 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-core.

commit 52d4e0491925afe1aca5b24981b55f526db52e1c
Author: Florian Dold <florian@dold.me>
AuthorDate: Wed Jan 10 22:48:05 2024 +0100

    wallet-core: do not process payments in dialog states
---
 packages/taler-wallet-core/src/operations/pending.ts | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/packages/taler-wallet-core/src/operations/pending.ts 
b/packages/taler-wallet-core/src/operations/pending.ts
index 20359624d..990d9a7b3 100644
--- a/packages/taler-wallet-core/src/operations/pending.ts
+++ b/packages/taler-wallet-core/src/operations/pending.ts
@@ -440,6 +440,12 @@ async function gatherPurchasePending(
   resp: PendingOperationsResponse,
 ): Promise<void> {
   await iterRecordsForPurchase(tx, { onlyState: "nonfinal" }, async (pr) => {
+    switch (pr.purchaseStatus) {
+      // These states are nonfinal but don't need any processing
+      case PurchaseStatus.DialogProposed:
+      case PurchaseStatus.DialogShared:
+        return;
+    }
     const opId = TaskIdentifiers.forPay(pr);
     const retryRecord = await tx.operationRetries.get(opId);
     const timestampDue =

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]