diff options
author | Nic Eigel <nic@eigel.ch> | 2024-04-26 09:32:25 +0200 |
---|---|---|
committer | Nic Eigel <nic@eigel.ch> | 2024-04-26 09:32:25 +0200 |
commit | 157dd4fa26a039bf2600290b2680b3ba79b15b2a (patch) | |
tree | 39b3f1a2af210fd3a0fdcb9bbd712b5dd7c1f2cc /src/auditor/taler-auditor-httpd_historic-denomination-revenue-put.c | |
parent | ba41bba2a251d00bd2411782890b9ae003243a98 (diff) | |
parent | 72f9b0cb96ee7daaa92f8e6891078fa5e0119ab3 (diff) | |
download | exchange-157dd4fa26a039bf2600290b2680b3ba79b15b2a.tar.gz exchange-157dd4fa26a039bf2600290b2680b3ba79b15b2a.tar.bz2 exchange-157dd4fa26a039bf2600290b2680b3ba79b15b2a.zip |
Merge remote-tracking branch 'origin/dev/nic/real-time-auditor-zwah' into dev/nic/real-time-auditor
# Conflicts:
# src/auditor/taler-auditor-httpd_denominations-without-sigs-get.c
# src/auditor/taler-auditor-httpd_deposit-confirmation-get.c
# src/auditor/taler-auditor-httpd_purse-not-closed-inconsistencies-get.c
# src/auditor/test-auditor.sh
# src/auditordb/pg_insert_reserve_balance_summary_wrong_inconsistency.c
Diffstat (limited to 'src/auditor/taler-auditor-httpd_historic-denomination-revenue-put.c')
-rw-r--r-- | src/auditor/taler-auditor-httpd_historic-denomination-revenue-put.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/src/auditor/taler-auditor-httpd_historic-denomination-revenue-put.c b/src/auditor/taler-auditor-httpd_historic-denomination-revenue-put.c index 938507c14..89166925a 100644 --- a/src/auditor/taler-auditor-httpd_historic-denomination-revenue-put.c +++ b/src/auditor/taler-auditor-httpd_historic-denomination-revenue-put.c @@ -1,5 +1,3 @@ - - /* This file is part of TALER Copyright (C) 2024 Taler Systems SA @@ -17,7 +15,6 @@ */ - #include "platform.h" #include <gnunet/gnunet_util_lib.h> #include <gnunet/gnunet_json_lib.h> @@ -58,7 +55,7 @@ process_inconsistency ( /* execute transaction */ qs = TAH_plugin->insert_historic_denomination_revenue (TAH_plugin->cls, - dc); + dc); if (0 > qs) { GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qs); @@ -91,11 +88,12 @@ TAH_HISTORIC_DENOMINATION_REVENUE_handler_put ( struct GNUNET_JSON_Specification spec[] = { - GNUNET_JSON_spec_fixed_auto("denom_pub_hash", &dc.denom_pub_hash), -GNUNET_JSON_spec_int64("revenue_timestamp", &dc.revenue_timestamp), -TALER_JSON_spec_amount("revenue_balance", TAH_currency, &dc.revenue_balance), -TALER_JSON_spec_amount("loss_balance", TAH_currency, &dc.loss_balance), -GNUNET_JSON_spec_bool("suppressed", &dc.suppressed), + GNUNET_JSON_spec_fixed_auto ("denom_pub_hash", &dc.denom_pub_hash), + GNUNET_JSON_spec_int64 ("revenue_timestamp", &dc.revenue_timestamp), + TALER_JSON_spec_amount ("revenue_balance", TAH_currency, + &dc.revenue_balance), + TALER_JSON_spec_amount ("loss_balance", TAH_currency, &dc.loss_balance), + GNUNET_JSON_spec_bool ("suppressed", &dc.suppressed), GNUNET_JSON_spec_end () @@ -159,5 +157,3 @@ TEAH_HISTORIC_DENOMINATION_REVENUE_PUT_done (void) { } - -
\ No newline at end of file |