diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2022-03-19 15:54:05 +0100 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2022-03-19 15:54:05 +0100 |
commit | c4690a44bce7e1bc003065df09cd739a9ca9dc5e (patch) | |
tree | ae14801a7b6c6e9a49e273e423e2f66c1b740f41 /src/testing/testing_api_cmd_deposit.c | |
parent | 685837ad280c83abae5f8a14f91c5968b720df8c (diff) | |
download | exchange-c4690a44bce7e1bc003065df09cd739a9ca9dc5e.tar.xz |
-minor code cleanup
Diffstat (limited to 'src/testing/testing_api_cmd_deposit.c')
-rw-r--r-- | src/testing/testing_api_cmd_deposit.c | 18 |
1 files changed, 10 insertions, 8 deletions
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); |