diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-09-15 22:20:07 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-09-15 22:20:07 +0200 |
commit | 528faeab81ba240329140eb1587ccc542736c1dc (patch) | |
tree | 639283b45f05dcd7ad9e2e5c89a28cf3f9dbefd8 /src/exchange-tools | |
parent | 46e4ea696cdba772ad5d6f8d79cf2e6586ef9979 (diff) |
fix #5315, including more testing
Diffstat (limited to 'src/exchange-tools')
-rw-r--r-- | src/exchange-tools/taler-exchange-keyup.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/exchange-tools/taler-exchange-keyup.c b/src/exchange-tools/taler-exchange-keyup.c index 9946eac49..22c72d5cc 100644 --- a/src/exchange-tools/taler-exchange-keyup.c +++ b/src/exchange-tools/taler-exchange-keyup.c @@ -639,6 +639,15 @@ get_cointype_params (const char *ct, return GNUNET_SYSERR; } GNUNET_TIME_round_rel (¶ms->duration_overlap); + if (params->duration_overlap.rel_value_us >= + params->duration_withdraw.rel_value_us) + { + GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR, + ct, + "duration_overlap", + "duration_overlap must be smaller than duration_withdraw!"); + return GNUNET_SYSERR; + } if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_number (kcfg, ct, @@ -814,8 +823,9 @@ exchange_keys_update_cointype (void *cls, { dkf = get_cointype_file (&p, p.anchor); - GNUNET_break (GNUNET_YES != GNUNET_DISK_file_test (dkf)); - GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + GNUNET_break (GNUNET_YES != + GNUNET_DISK_file_test (dkf)); + GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Generating denomination key for type `%s', start %s at %s\n", coin_alias, GNUNET_STRINGS_absolute_time_to_string (p.anchor), |