diff options
Diffstat (limited to 'src/exchange/taler-exchange-httpd_auditors.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_auditors.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/exchange/taler-exchange-httpd_auditors.c b/src/exchange/taler-exchange-httpd_auditors.c index 34e640ad7..9d3239e86 100644 --- a/src/exchange/taler-exchange-httpd_auditors.c +++ b/src/exchange/taler-exchange-httpd_auditors.c @@ -45,7 +45,7 @@ struct AddAuditorDenomContext /** * Denomination this is about. */ - const struct GNUNET_HashCode *h_denom_pub; + const struct TALER_DenominationHashP *h_denom_pub; /** * Auditor this is about. @@ -101,7 +101,7 @@ add_auditor_denom_sig (void *cls, connection, MHD_HTTP_NOT_FOUND, TALER_EC_EXCHANGE_GENERIC_DENOMINATION_KEY_UNKNOWN, - GNUNET_h2s (awc->h_denom_pub)); + GNUNET_h2s (&awc->h_denom_pub->hash)); return GNUNET_DB_STATUS_HARD_ERROR; } @@ -140,6 +140,7 @@ add_auditor_denom_sig (void *cls, TALER_B2S (awc->auditor_pub)); return GNUNET_DB_STATUS_HARD_ERROR; } + TEH_METRICS_num_verifications[TEH_MT_SIGNATURE_EDDSA]++; if (GNUNET_OK != TALER_auditor_denom_validity_verify ( auditor_url, @@ -150,10 +151,7 @@ add_auditor_denom_sig (void *cls, meta.expire_deposit, meta.expire_legal, &meta.value, - &meta.fee_withdraw, - &meta.fee_deposit, - &meta.fee_refresh, - &meta.fee_refund, + &meta.fees, awc->auditor_pub, &awc->auditor_sig)) { @@ -192,7 +190,7 @@ MHD_RESULT TEH_handler_auditors ( struct MHD_Connection *connection, const struct TALER_AuditorPublicKeyP *auditor_pub, - const struct GNUNET_HashCode *h_denom_pub, + const struct TALER_DenominationHashP *h_denom_pub, const json_t *root) { struct AddAuditorDenomContext awc = { @@ -216,6 +214,7 @@ TEH_handler_auditors ( return MHD_YES; /* failure */ ret = TEH_DB_run_transaction (connection, "add auditor denom sig", + TEH_MT_REQUEST_OTHER, &res, &add_auditor_denom_sig, &awc); |