fix range check, make messages clearer
This commit is contained in:
parent
d589293557
commit
b696e1db1d
@ -33,3 +33,9 @@ test_mint_api_LDADD = \
|
||||
$(top_builddir)/src/util/libtalerutil.la \
|
||||
-lgnunetutil \
|
||||
-ljansson
|
||||
|
||||
EXTRA_DIST = \
|
||||
test-mint-home/config/mint-common.conf \
|
||||
test-mint-home/master.priv \
|
||||
test-mint-home/denomkeys/ \
|
||||
test-mint-home/signkeys/
|
||||
|
@ -502,12 +502,13 @@ mint_keys_update_signkeys ()
|
||||
"legal_duration",
|
||||
&legal_duration))
|
||||
{
|
||||
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
|
||||
GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR,
|
||||
"mint_keys",
|
||||
"legal_duration");
|
||||
"legal_duration",
|
||||
"fails to specify valid timeframe");
|
||||
return GNUNET_SYSERR;
|
||||
}
|
||||
if (signkey_duration.rel_value_us < legal_duration.rel_value_us)
|
||||
if (signkey_duration.rel_value_us > legal_duration.rel_value_us)
|
||||
{
|
||||
GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR,
|
||||
"mint_keys",
|
||||
|
Loading…
Reference in New Issue
Block a user