diff options
author | Marco Boss <bossm8@bfh.ch> | 2022-03-14 20:06:07 +0100 |
---|---|---|
committer | Marco Boss <bossm8@bfh.ch> | 2022-03-14 20:06:07 +0100 |
commit | 7529939a0f7af04c9435cd985a3d4729935634e1 (patch) | |
tree | 5a5dccb30ad8be058ab0910d163994fefc73e842 /src/exchange/taler-exchange-httpd_deposit.c | |
parent | 687f0cab82869216289c62ac42acd9c8a6bbf59f (diff) | |
download | exchange-7529939a0f7af04c9435cd985a3d4729935634e1.tar.gz exchange-7529939a0f7af04c9435cd985a3d4729935634e1.tar.bz2 exchange-7529939a0f7af04c9435cd985a3d4729935634e1.zip |
add metrics for number of crypto operations
Diffstat (limited to 'src/exchange/taler-exchange-httpd_deposit.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_deposit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/exchange/taler-exchange-httpd_deposit.c b/src/exchange/taler-exchange-httpd_deposit.c index 66cbe04ca..b1c91f76c 100644 --- a/src/exchange/taler-exchange-httpd_deposit.c +++ b/src/exchange/taler-exchange-httpd_deposit.c @@ -382,6 +382,7 @@ TEH_handler_deposit (struct MHD_Connection *connection, deposit.deposit_fee = dk->meta.fees.deposit; /* check coin signature */ + TEH_METRICS_num_verifications[TEH_MT_CIPHER]++; if (GNUNET_YES != TALER_test_coin_valid (&deposit.coin, &dk->denom_pub)) @@ -405,6 +406,7 @@ TEH_handler_deposit (struct MHD_Connection *connection, NULL); } + TEH_METRICS_num_verifications[TEH_MT_EDDSA]++; if (GNUNET_OK != TALER_wallet_deposit_verify (&deposit.amount_with_fee, &deposit.deposit_fee, @@ -472,7 +474,7 @@ TEH_handler_deposit (struct MHD_Connection *connection, if (GNUNET_OK != TEH_DB_run_transaction (connection, "execute deposit", - TEH_MT_DEPOSIT, + TEH_MT_REQUEST_DEPOSIT, &mhd_ret, &deposit_transaction, &dc)) |