gnunet-svn
[Top][All Lists]
Advanced

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

[cash2ecash] branch master updated: debugging


From: gnunet
Subject: [cash2ecash] branch master updated: debugging
Date: Thu, 02 Jan 2025 14:12:41 +0100

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

manuel-geissbuehler pushed a commit to branch master
in repository cash2ecash.

The following commit(s) were added to refs/heads/master by this push:
     new 91fbd1c  debugging
91fbd1c is described below

commit 91fbd1cbe4d72f052acce0f7a9c8998e66a9f3d4
Author: Manuel Geissbühler <manuel@debian>
AuthorDate: Thu Jan 2 14:12:32 2025 +0100

    debugging
---
 src/bank/bank_lib.c | 14 ++++++--------
 src/cash2ecash.cpp  |  2 +-
 2 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/src/bank/bank_lib.c b/src/bank/bank_lib.c
index c96cc65..c5705cb 100644
--- a/src/bank/bank_lib.c
+++ b/src/bank/bank_lib.c
@@ -130,8 +130,6 @@ static void account_token_cb(void *cls, const struct 
TALER_BANK_AccountTokenResp
                   stderr,
                   JSON_INDENT (2));
     break;
-
-    
   }
 
   //Switch Authentification method to Bearer and add Token
@@ -141,9 +139,9 @@ static void account_token_cb(void *cls, const struct 
TALER_BANK_AccountTokenResp
   auth.details.bearer.token = GNUNET_strdup(atr->details.ok.access_token);
 
   printf("fertig in bankcomu\n");
-  extInitCallback();
-  
+   
   GNUNET_SCHEDULER_shutdown();
+  extInitCallback();
 }
 
 /**
@@ -171,10 +169,10 @@ static void account_withdrawal_confirm_cb(void *cls, 
const struct TALER_BANK_Acc
     break;
   }
 
+  GNUNET_SCHEDULER_shutdown();
+
   //Call callback with the results
   extWithdrawalConfirmCallback();
-
-  GNUNET_SCHEDULER_shutdown();
 }
 
 /**
@@ -202,11 +200,11 @@ static void withdrawalID_info_cb(void *cls, const struct 
TALER_BANK_WithdrawalID
     break;
   }
 
+  GNUNET_SCHEDULER_shutdown();
+
    //Assign pointer to results and call callback
   *par_res_status = widr->details.ok.status; //maybe need to strdup?
   extWithdrawalIDInfoCallback();
-
-  GNUNET_SCHEDULER_shutdown();
 }
 
 
diff --git a/src/cash2ecash.cpp b/src/cash2ecash.cpp
index be39ad0..3ece848 100644
--- a/src/cash2ecash.cpp
+++ b/src/cash2ecash.cpp
@@ -92,7 +92,7 @@ void actionEventIdentificationSuccess(){
 }
 
 void actionEventBankTokenDone(){
-  std::cout << "Action Event Bank Token called" << std::endl;
+  std::cout << "Action Event Bank Token Done called" << std::endl;
   static struct TALER_Amount amountZero;
   TALER_amount_set_zero("KUDOS", &amountZero);
   bankCommunication.withdrawalRequest(NULL, &amountZero, withdrawal_id, 
taler_withdraw_uri);

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