aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_reserve_attest.c
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-taler@kesim.org>2023-06-10 11:07:06 +0200
committerÖzgür Kesim <oec-taler@kesim.org>2023-06-10 11:07:06 +0200
commit70bfe0ed1b9a5dbb6cc487465ef3c3df4cdb0436 (patch)
tree5f32b30f5b58dfc502c273bebecffbcb79fc3c4b /src/testing/testing_api_cmd_reserve_attest.c
parent46188ae07e97d12b73269167459707844b3c2486 (diff)
parentd8f8c550bd7ad85f9da9bc5edba619e533eabcc8 (diff)
downloadexchange-70bfe0ed1b9a5dbb6cc487465ef3c3df4cdb0436.tar.xz
Merge branch 'master' into age-withdraw
Diffstat (limited to 'src/testing/testing_api_cmd_reserve_attest.c')
-rw-r--r--src/testing/testing_api_cmd_reserve_attest.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/testing/testing_api_cmd_reserve_attest.c b/src/testing/testing_api_cmd_reserve_attest.c
index eec3eae5b..77166d2b5 100644
--- a/src/testing/testing_api_cmd_reserve_attest.c
+++ b/src/testing/testing_api_cmd_reserve_attest.c
@@ -152,7 +152,11 @@ attest_run (void *cls,
{
struct AttestState *ss = cls;
const struct TALER_TESTING_Command *create_reserve;
+ struct TALER_EXCHANGE_Handle *exchange
+ = TALER_TESTING_get_exchange (is);
+ if (NULL == exchange)
+ return;
ss->is = is;
create_reserve
= TALER_TESTING_interpreter_lookup_command (is,
@@ -175,7 +179,7 @@ attest_run (void *cls,
}
GNUNET_CRYPTO_eddsa_key_get_public (&ss->reserve_priv->eddsa_priv,
&ss->reserve_pub.eddsa_pub);
- ss->rsh = TALER_EXCHANGE_reserves_attest (is->exchange,
+ ss->rsh = TALER_EXCHANGE_reserves_attest (exchange,
ss->reserve_priv,
ss->attrs_len,
ss->attrs,
@@ -199,10 +203,8 @@ attest_cleanup (void *cls,
if (NULL != ss->rsh)
{
- GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
- "Command %u (%s) did not complete\n",
- ss->is->ip,
- cmd->label);
+ TALER_TESTING_command_incomplete (ss->is,
+ cmd->label);
TALER_EXCHANGE_reserves_attest_cancel (ss->rsh);
ss->rsh = NULL;
}