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: extra cancellati


From: gnunet
Subject: [taler-wallet-core] branch master updated: wallet-core: extra cancellation points
Date: Tue, 09 Apr 2024 18:44:50 +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 3ed118e53 wallet-core: extra cancellation points
3ed118e53 is described below

commit 3ed118e5320df907287b3bd0d7aadda5b4e7913f
Author: Florian Dold <florian@dold.me>
AuthorDate: Tue Apr 9 18:43:30 2024 +0200

    wallet-core: extra cancellation points
---
 packages/taler-wallet-core/src/withdraw.ts | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/packages/taler-wallet-core/src/withdraw.ts 
b/packages/taler-wallet-core/src/withdraw.ts
index a16a03054..ecd654edf 100644
--- a/packages/taler-wallet-core/src/withdraw.ts
+++ b/packages/taler-wallet-core/src/withdraw.ts
@@ -1937,6 +1937,8 @@ export async function getExchangeWithdrawalInfo(
     cancellationToken: wex.cancellationToken,
   });
 
+  wex.cancellationToken.throwIfCancelled();
+
   if (exchange.currency != instructedAmount.currency) {
     // Specifying the amount in the conversion input currency is not yet 
supported.
     // We might add support for it later.
@@ -1957,12 +1959,17 @@ export async function getExchangeWithdrawalInfo(
   logger.trace("updating withdrawal denoms");
   await updateWithdrawalDenoms(wex, exchangeBaseUrl);
 
+  wex.cancellationToken.throwIfCancelled();
+
   logger.trace("getting candidate denoms");
   const candidateDenoms = await getCandidateWithdrawalDenoms(
     wex,
     exchangeBaseUrl,
     instructedAmount.currency,
   );
+
+  wex.cancellationToken.throwIfCancelled();
+
   logger.trace("selecting withdrawal denoms");
   // FIXME: Why not in a transaction?
   const selectedDenoms = selectWithdrawalDenominations(

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