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: fix long-polling


From: gnunet
Subject: [taler-wallet-core] branch master updated: wallet-core: fix long-polling check
Date: Tue, 06 Jun 2023 15:23:28 +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 265d88b6b wallet-core: fix long-polling check
265d88b6b is described below

commit 265d88b6b7eaf08ef2ab7ccb22c43205354b0f0d
Author: Florian Dold <florian@dold.me>
AuthorDate: Tue Jun 6 15:23:25 2023 +0200

    wallet-core: fix long-polling check
---
 packages/taler-wallet-core/src/operations/pay-peer-push-debit.ts | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/packages/taler-wallet-core/src/operations/pay-peer-push-debit.ts 
b/packages/taler-wallet-core/src/operations/pay-peer-push-debit.ts
index 599ef658b..cc90416fb 100644
--- a/packages/taler-wallet-core/src/operations/pay-peer-push-debit.ts
+++ b/packages/taler-wallet-core/src/operations/pay-peer-push-debit.ts
@@ -365,6 +365,7 @@ async function processPeerPushDebitReady(
       peerPushInitiation.exchangeBaseUrl,
     );
     mergeUrl.searchParams.set("timeout_ms", "30000");
+    logger.info(`long-polling on purse status at ${mergeUrl.href}`);
     const resp = await ws.http.fetch(mergeUrl.href, {
       // timeout: getReserveRequestTimeout(withdrawalGroup),
       cancellationToken: ct,
@@ -374,7 +375,8 @@ async function processPeerPushDebitReady(
         resp,
         codecForExchangePurseStatus(),
       );
-      if (purseStatus.deposit_timestamp) {
+      logger.info(`got purse status ${purseStatus}`);
+      if (purseStatus.merge_timestamp) {
         await transitionPeerPushDebitTransaction(
           ws,
           peerPushInitiation.pursePub,

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