gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] branch master updated: walet-core: always show refre


From: gnunet
Subject: [taler-wallet-core] branch master updated: walet-core: always show refresh transactions when in an error state
Date: Tue, 14 Feb 2023 13:38:20 +0100

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

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

The following commit(s) were added to refs/heads/master by this push:
     new 58c59a3e5 walet-core: always show refresh transactions when in an 
error state
58c59a3e5 is described below

commit 58c59a3e5ec2b3460c532e83c8bf5d7acdd09d25
Author: Florian Dold <florian@dold.me>
AuthorDate: Tue Feb 14 13:38:12 2023 +0100

    walet-core: always show refresh transactions when in an error state
---
 .../src/operations/transactions.ts                 | 23 +++++++++++++++-------
 1 file changed, 16 insertions(+), 7 deletions(-)

diff --git a/packages/taler-wallet-core/src/operations/transactions.ts 
b/packages/taler-wallet-core/src/operations/transactions.ts
index 5b6b5adc3..0dbbc56c1 100644
--- a/packages/taler-wallet-core/src/operations/transactions.ts
+++ b/packages/taler-wallet-core/src/operations/transactions.ts
@@ -971,16 +971,25 @@ export async function getTransactions(
         transactions.push(buildTransactionForPullPaymentDebit(pi));
       });
 
-      if (transactionsRequest?.includeRefreshes) {
-        tx.refreshGroups.iter().forEachAsync(async (rg) => {
-          if (shouldSkipCurrency(transactionsRequest, rg.currency)) {
-            return;
+      tx.refreshGroups.iter().forEachAsync(async (rg) => {
+        if (shouldSkipCurrency(transactionsRequest, rg.currency)) {
+          return;
+        }
+        let required = false;
+        const opId = RetryTags.forRefresh(rg);
+        if (transactionsRequest?.includeRefreshes) {
+          required = true;
+        } else if (rg.operationStatus !== RefreshOperationStatus.Finished) {
+          const ort = await tx.operationRetries.get(opId);
+          if (ort) {
+            required = true;
           }
-          const opId = RetryTags.forRefresh(rg);
+        }
+        if (required) {
           const ort = await tx.operationRetries.get(opId);
           transactions.push(buildTransactionForRefresh(rg, ort));
-        });
-      }
+        }
+      });
 
       tx.withdrawalGroups.iter().forEachAsync(async (wsr) => {
         if (

-- 
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]