[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: -also work with h_payto trait
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: -also work with h_payto trait |
Date: |
Thu, 10 Mar 2022 01:48:52 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new 9a3d993d -also work with h_payto trait
9a3d993d is described below
commit 9a3d993d071c4733f1243ef2ab8185210a907b75
Author: Christian Grothoff <grothoff@gnunet.org>
AuthorDate: Thu Mar 10 01:48:46 2022 +0100
-also work with h_payto trait
---
src/include/taler_testing_lib.h | 1 +
src/testing/testing_api_cmd_kyc_proof.c | 27 +++++++++++++++++++--------
2 files changed, 20 insertions(+), 8 deletions(-)
diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h
index 5d5cff49..ac5f6c60 100644
--- a/src/include/taler_testing_lib.h
+++ b/src/include/taler_testing_lib.h
@@ -2445,6 +2445,7 @@ TALER_TESTING_get_trait (const struct TALER_TESTING_Trait
*traits,
#define TALER_TESTING_SIMPLE_TRAITS(op) \
op (bank_row, const uint64_t) \
op (reserve_priv, const struct TALER_ReservePrivateKeyP) \
+ op (h_payto, const struct TALER_PaytoHashP) \
op (planchet_secret, const struct TALER_PlanchetMasterSecretP) \
op (refresh_secret, const struct TALER_RefreshMasterSecretP) \
op (reserve_pub, const struct TALER_ReservePublicKeyP) \
diff --git a/src/testing/testing_api_cmd_kyc_proof.c
b/src/testing/testing_api_cmd_kyc_proof.c
index 3ee06972..f9a65afb 100644
--- a/src/testing/testing_api_cmd_kyc_proof.c
+++ b/src/testing/testing_api_cmd_kyc_proof.c
@@ -149,15 +149,26 @@ proof_kyc_run (void *cls,
TALER_TESTING_get_trait_payto_uri (res_cmd,
&payto_uri))
{
- GNUNET_break (0);
- TALER_TESTING_interpreter_fail (kps->is);
- return;
+ const struct TALER_PaytoHashP *hpt;
+
+ if (GNUNET_OK !=
+ TALER_TESTING_get_trait_h_payto (res_cmd,
+ &hpt))
+ {
+ GNUNET_break (0);
+ TALER_TESTING_interpreter_fail (kps->is);
+ return;
+ }
+ h_payto = *hpt;
+ }
+ else
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Triggering KYC proof for %s\n",
+ *payto_uri);
+ TALER_payto_hash (*payto_uri,
+ &h_payto);
}
- GNUNET_log (GNUNET_ERROR_TYPE_INFO,
- "Triggering KYC proof for %s\n",
- *payto_uri);
- TALER_payto_hash (*payto_uri,
- &h_payto);
kps->kph = TALER_EXCHANGE_kyc_proof (is->exchange,
&h_payto,
kps->code,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: -also work with h_payto trait,
gnunet <=