gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] branch master updated: show withdrawal transaction c


From: gnunet
Subject: [taler-wallet-core] branch master updated: show withdrawal transaction continuously
Date: Fri, 15 May 2020 13:53:54 +0200

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 59178331 show withdrawal transaction continuously
59178331 is described below

commit 59178331a46467e0eb6f4dc0331f8d52d9afcb3c
Author: Florian Dold <address@hidden>
AuthorDate: Fri May 15 17:23:49 2020 +0530

    show withdrawal transaction continuously
---
 src/operations/transactions.ts | 41 ++++++++++++++++++++---------------------
 1 file changed, 20 insertions(+), 21 deletions(-)

diff --git a/src/operations/transactions.ts b/src/operations/transactions.ts
index 20adf320..5602c6b0 100644
--- a/src/operations/transactions.ts
+++ b/src/operations/transactions.ts
@@ -166,25 +166,19 @@ export async function getTransactions(
           return;
         }
 
-        if (transactionsRequest?.search)
-          if (wsr.rawWithdrawalAmount.currency)
-            if (wsr.timestampFinish) {
-              transactions.push({
-                type: TransactionType.Withdrawal,
-                amountEffective: Amounts.stringify(
-                  wsr.denomsSel.totalCoinValue,
-                ),
-                amountRaw: Amounts.stringify(wsr.denomsSel.totalWithdrawCost),
-                confirmed: true,
-                exchangeBaseUrl: wsr.exchangeBaseUrl,
-                pending: !wsr.timestampFinish,
-                timestamp: wsr.timestampStart,
-                transactionId: makeEventId(
-                  TransactionType.Withdrawal,
-                  wsr.withdrawalGroupId,
-                ),
-              });
-            }
+        transactions.push({
+          type: TransactionType.Withdrawal,
+          amountEffective: Amounts.stringify(wsr.denomsSel.totalCoinValue),
+          amountRaw: Amounts.stringify(wsr.denomsSel.totalWithdrawCost),
+          confirmed: true,
+          exchangeBaseUrl: wsr.exchangeBaseUrl,
+          pending: !wsr.timestampFinish,
+          timestamp: wsr.timestampStart,
+          transactionId: makeEventId(
+            TransactionType.Withdrawal,
+            wsr.withdrawalGroupId,
+          ),
+        });
       });
 
       tx.iter(Stores.reserves).forEach((r) => {
@@ -194,8 +188,13 @@ export async function getTransactions(
         if (shouldSkipSearch(transactionsRequest, [])) {
           return;
         }
-        if (r.reserveStatus !== ReserveRecordStatus.WAIT_CONFIRM_BANK) {
-          return;
+        switch (r.reserveStatus) {
+          case ReserveRecordStatus.WAIT_CONFIRM_BANK:
+            break;
+          case ReserveRecordStatus.WITHDRAWING:
+            break;
+          default:
+            return;
         }
         if (!r.bankInfo) {
           return;

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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