diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-01-19 20:57:32 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-01-19 20:57:32 +0100 |
commit | 4fac247bc7187cd611daad87563396c06a8295e4 (patch) | |
tree | 25965fa06ace4886f07c997a2b9ea47f10101d1b /src/auditor/taler-wire-auditor.c | |
parent | 6f3c6827221fae6da47a113af4172e8f269bd38c (diff) | |
download | exchange-4fac247bc7187cd611daad87563396c06a8295e4.tar.xz |
use TALER_config_get_amount() consistently, require currency rounding option to exist instead of defaulting
Diffstat (limited to 'src/auditor/taler-wire-auditor.c')
-rw-r--r-- | src/auditor/taler-wire-auditor.c | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/src/auditor/taler-wire-auditor.c b/src/auditor/taler-wire-auditor.c index 73f1f9db9..6821aedb2 100644 --- a/src/auditor/taler-wire-auditor.c +++ b/src/auditor/taler-wire-auditor.c @@ -2103,7 +2103,6 @@ run (void *cls, const struct GNUNET_CONFIGURATION_Handle *c) { static const struct TALER_MasterPublicKeyP zeromp; - char *tinys; (void) cls; (void) args; @@ -2113,22 +2112,11 @@ run (void *cls, start_time = GNUNET_TIME_absolute_get (); cfg = c; if (GNUNET_OK != - GNUNET_CONFIGURATION_get_value_string (cfg, - "auditor", - "TINY_AMOUNT", - &tinys)) - { - GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, + TALER_config_get_amount (cfg, "auditor", - "TINY_AMOUNT"); - global_ret = 1; - return; - } - if (GNUNET_OK != - TALER_string_to_amount (tinys, - &tiny_amount)) + "TINY_AMOUNT", + &tiny_amount)) { - GNUNET_free (tinys); GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR, "auditor", "TINY_AMOUNT", @@ -2136,7 +2124,6 @@ run (void *cls, global_ret = 1; return; } - GNUNET_free (tinys); if (0 == GNUNET_memcmp (&zeromp, &master_pub)) { |