gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] branch master updated: wallet-core: dispatch cancelA


From: gnunet
Subject: [taler-wallet-core] branch master updated: wallet-core: dispatch cancelAborting for withdrawal
Date: Fri, 26 May 2023 10:43: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 5df212c66 wallet-core: dispatch cancelAborting for withdrawal
5df212c66 is described below

commit 5df212c66df5b859dc18e80d7d759f43ce5ef6b5
Author: Florian Dold <florian@dold.me>
AuthorDate: Fri May 26 10:43:49 2023 +0200

    wallet-core: dispatch cancelAborting for withdrawal
---
 packages/taler-wallet-core/src/operations/transactions.ts | 4 ++++
 packages/taler-wallet-core/src/operations/withdraw.ts     | 3 +--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/packages/taler-wallet-core/src/operations/transactions.ts 
b/packages/taler-wallet-core/src/operations/transactions.ts
index e3cfa0c25..ac502fc08 100644
--- a/packages/taler-wallet-core/src/operations/transactions.ts
+++ b/packages/taler-wallet-core/src/operations/transactions.ts
@@ -106,6 +106,7 @@ import { computeTipTransactionStatus, processTip } from 
"./tip.js";
 import {
   abortWithdrawalTransaction,
   augmentPaytoUrisForWithdrawal,
+  cancelAbortingWithdrawalTransaction,
   computeWithdrawalTransactionStatus,
   processWithdrawalGroup,
 } from "./withdraw.js";
@@ -1415,6 +1416,9 @@ export async function cancelAbortingTransaction(
     case TransactionType.Deposit:
       await cancelAbortingDepositGroup(ws, tx.depositGroupId);
       return;
+    case TransactionType.Withdrawal:
+      await cancelAbortingWithdrawalTransaction(ws, tx.withdrawalGroupId);
+      return;
     default:
       logger.warn(`unable to suspend transaction of type '${tx.tag}'`);
   }
diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts 
b/packages/taler-wallet-core/src/operations/withdraw.ts
index d59d9fea3..c0566bf4d 100644
--- a/packages/taler-wallet-core/src/operations/withdraw.ts
+++ b/packages/taler-wallet-core/src/operations/withdraw.ts
@@ -339,8 +339,6 @@ export async function abortWithdrawalTransaction(
   notifyTransition(ws, transactionId, transitionInfo);
 }
 
-// Called "cancel" in the spec right now,
-// from suspended-aborting.
 export async function cancelAbortingWithdrawalTransaction(
   ws: InternalWalletState,
   withdrawalGroupId: string,
@@ -364,6 +362,7 @@ export async function cancelAbortingWithdrawalTransaction(
       }
       let newStatus: WithdrawalGroupStatus | undefined = undefined;
       switch (wg.status) {
+        case WithdrawalGroupStatus.SuspendedAbortingBank:
         case WithdrawalGroupStatus.AbortingBank:
           newStatus = WithdrawalGroupStatus.FailedAbortingBank;
           break;

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