commit 91fbd1cbe4d72f052acce0f7a9c8998e66a9f3d4
parent 3e260136f6aaeb25638bd400262dcf5d56db86ca
Author: Manuel Geissbühler <manuel@debian>
Date: Thu, 2 Jan 2025 14:12:32 +0100
debugging
Diffstat:
2 files changed, 7 insertions(+), 9 deletions(-)
diff --git 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
@@ -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);