From c4690a44bce7e1bc003065df09cd739a9ca9dc5e Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 19 Mar 2022 15:54:05 +0100 Subject: -minor code cleanup --- src/testing/testing_api_cmd_deposit.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'src/testing/testing_api_cmd_deposit.c') diff --git a/src/testing/testing_api_cmd_deposit.c b/src/testing/testing_api_cmd_deposit.c index 2b9486ca5..2f55a318c 100644 --- a/src/testing/testing_api_cmd_deposit.c +++ b/src/testing/testing_api_cmd_deposit.c @@ -241,6 +241,7 @@ deposit_cb (void *cls, ds->backoff = GNUNET_TIME_randomized_backoff (ds->backoff, MAX_BACKOFF); ds->is->commands[ds->is->ip].num_tries++; + GNUNET_assert (NULL == ds->retry_task); ds->retry_task = GNUNET_SCHEDULER_add_delayed (ds->backoff, &do_retry, @@ -452,6 +453,7 @@ deposit_run (void *cls, coin_priv, &coin_sig); } + GNUNET_assert (NULL == ds->dh); ds->dh = TALER_EXCHANGE_deposit (is->exchange, &ds->amount, ds->wire_deadline, @@ -552,14 +554,14 @@ deposit_traits (void *cls, TALER_TESTING_interpreter_fail (ds->is); return GNUNET_NO; } - if (GNUNET_OK != - TALER_TESTING_get_trait_coin_priv (coin_cmd, - ds->coin_index, - &coin_spent_priv) || - (GNUNET_OK != - TALER_TESTING_get_trait_age_commitment_proof (coin_cmd, - ds->coin_index, - &age_commitment_proof))) + if ( (GNUNET_OK != + TALER_TESTING_get_trait_coin_priv (coin_cmd, + ds->coin_index, + &coin_spent_priv)) || + (GNUNET_OK != + TALER_TESTING_get_trait_age_commitment_proof (coin_cmd, + ds->coin_index, + &age_commitment_proof)) ) { GNUNET_break (0); TALER_TESTING_interpreter_fail (ds->is); -- cgit v1.2.3