aboutsummaryrefslogtreecommitdiff
path: root/src/exchange-tools/taler-auditor-offline.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-07-24 09:00:35 +0200
committerChristian Grothoff <christian@grothoff.org>2021-07-24 09:00:35 +0200
commit42decef957861689c41d16a0dcfa8af3d9052816 (patch)
treeed55c4e5a2e2a4b8d2880fe10c8f82173cf0a11e /src/exchange-tools/taler-auditor-offline.c
parent325b60989faadb54213af578bb9b1b705d022726 (diff)
fix #6939 in exchange
Diffstat (limited to 'src/exchange-tools/taler-auditor-offline.c')
-rw-r--r--src/exchange-tools/taler-auditor-offline.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/exchange-tools/taler-auditor-offline.c b/src/exchange-tools/taler-auditor-offline.c
index 7b6d0a893..33743bb3a 100644
--- a/src/exchange-tools/taler-auditor-offline.c
+++ b/src/exchange-tools/taler-auditor-offline.c
@@ -98,6 +98,11 @@ static json_t *in;
*/
static json_t *out;
+/**
+ * Currency supported by this auditor.
+ */
+static char *currency;
+
/**
* A subcommand supported by this program.
@@ -749,14 +754,19 @@ show_denomkeys (const json_t *denomkeys)
GNUNET_JSON_spec_rsa_public_key ("denom_pub",
&denom_pub.rsa_public_key),
TALER_JSON_spec_amount ("value",
+ currency,
&coin_value),
TALER_JSON_spec_amount ("fee_withdraw",
+ currency,
&fee_withdraw),
TALER_JSON_spec_amount ("fee_deposit",
+ currency,
&fee_deposit),
TALER_JSON_spec_amount ("fee_refresh",
+ currency,
&fee_refresh),
TALER_JSON_spec_amount ("fee_refund",
+ currency,
&fee_refund),
GNUNET_JSON_spec_absolute_time ("stamp_start",
&stamp_start),
@@ -1044,14 +1054,19 @@ sign_denomkeys (const json_t *denomkeys)
GNUNET_JSON_spec_rsa_public_key ("denom_pub",
&denom_pub.rsa_public_key),
TALER_JSON_spec_amount ("value",
+ currency,
&coin_value),
TALER_JSON_spec_amount ("fee_withdraw",
+ currency,
&fee_withdraw),
TALER_JSON_spec_amount ("fee_deposit",
+ currency,
&fee_deposit),
TALER_JSON_spec_amount ("fee_refresh",
+ currency,
&fee_refresh),
TALER_JSON_spec_amount ("fee_refund",
+ currency,
&fee_refund),
GNUNET_JSON_spec_absolute_time ("stamp_start",
&stamp_start),
@@ -1347,6 +1362,13 @@ run (void *cls,
{
kcfg = cfg;
if (GNUNET_OK !=
+ TALER_config_get_currency (kcfg,
+ &currency))
+ {
+ global_ret = 1;
+ return;
+ }
+ if (GNUNET_OK !=
GNUNET_CONFIGURATION_get_value_string (kcfg,
"auditor",
"BASE_URL",