diff options
| author | Christian Grothoff <christian@grothoff.org> | 2023-06-21 08:15:06 +0200 | 
|---|---|---|
| committer | Christian Grothoff <christian@grothoff.org> | 2023-06-21 08:15:06 +0200 | 
| commit | af77a2a178a818abe851e4e25e768e2c1963b49c (patch) | |
| tree | bd30d3181328f371cf5d67ffbc14bd942760b11b /src/testing | |
| parent | a37a8d34d54cd91fba321a225ae626e8594c6a48 (diff) | |
-more auditor API atomization
Diffstat (limited to 'src/testing')
| -rw-r--r-- | src/testing/testing_api_cmd_auditor_deposit_confirmation.c | 53 | 
1 files changed, 30 insertions, 23 deletions
| diff --git a/src/testing/testing_api_cmd_auditor_deposit_confirmation.c b/src/testing/testing_api_cmd_auditor_deposit_confirmation.c index c2a4bcc2..5c7b76a3 100644 --- a/src/testing/testing_api_cmd_auditor_deposit_confirmation.c +++ b/src/testing/testing_api_cmd_auditor_deposit_confirmation.c @@ -210,7 +210,7 @@ deposit_confirmation_run (void *cls,    const struct TALER_CoinSpendPrivateKeyP *coin_priv;    const struct TALER_EXCHANGE_Keys *keys;    const struct TALER_EXCHANGE_SigningPublicKey *spk; -  struct TALER_AUDITOR_Handle *auditor; +  const char *auditor_url;    struct TALER_EXCHANGE_Handle *exchange      = TALER_TESTING_get_exchange (is); @@ -231,9 +231,14 @@ deposit_confirmation_run (void *cls,        TALER_TESTING_interpreter_fail (is);        return;      } -    GNUNET_assert (GNUNET_OK == -                   TALER_TESTING_get_trait_auditor (auditor_cmd, -                                                    &auditor)); +    if (GNUNET_OK != +        TALER_TESTING_get_trait_auditor_url (auditor_cmd, +                                             &auditor_url)) +    { +      GNUNET_break (0); +      TALER_TESTING_interpreter_fail (is); +      return; +    }    }    deposit_cmd      = TALER_TESTING_interpreter_lookup_command (is, @@ -319,25 +324,27 @@ deposit_confirmation_run (void *cls,      if (GNUNET_TIME_absolute_is_zero (refund_deadline.abs_time))        refund_deadline = timestamp;    } -  dcs->dc = TALER_AUDITOR_deposit_confirmation (auditor, -                                                &h_wire, -                                                &no_h_policy, -                                                &h_contract_terms, -                                                *exchange_timestamp, -                                                *wire_deadline, -                                                refund_deadline, -                                                &amount_without_fee, -                                                &coin_pub, -                                                &merchant_pub, -                                                exchange_pub, -                                                exchange_sig, -                                                &keys->master_pub, -                                                spk->valid_from, -                                                spk->valid_until, -                                                spk->valid_legal, -                                                &spk->master_sig, -                                                &deposit_confirmation_cb, -                                                dcs); +  dcs->dc = TALER_AUDITOR_deposit_confirmation ( +    TALER_TESTING_interpreter_get_context (is), +    auditor_url, +    &h_wire, +    &no_h_policy, +    &h_contract_terms, +    *exchange_timestamp, +    *wire_deadline, +    refund_deadline, +    &amount_without_fee, +    &coin_pub, +    &merchant_pub, +    exchange_pub, +    exchange_sig, +    &keys->master_pub, +    spk->valid_from, +    spk->valid_until, +    spk->valid_legal, +    &spk->master_sig, +    &deposit_confirmation_cb, +    dcs);    if (NULL == dcs->dc)    { | 
