diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-12-09 23:39:11 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-12-09 23:39:11 +0100 |
commit | 5a24334e83dabcb00e0e0f4292a678b6820ea370 (patch) | |
tree | d404d8358f0d812cffcc668b2a9185cab1fafad2 /src/exchange/taler-exchange-httpd.c | |
parent | 788f84f695589fad2afac9f3f600869d114fb79e (diff) | |
download | exchange-5a24334e83dabcb00e0e0f4292a678b6820ea370.tar.gz exchange-5a24334e83dabcb00e0e0f4292a678b6820ea370.tar.bz2 exchange-5a24334e83dabcb00e0e0f4292a678b6820ea370.zip |
complete new implementation of GET /keys
Diffstat (limited to 'src/exchange/taler-exchange-httpd.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c index fe00bf6d4..9717c5eb2 100644 --- a/src/exchange/taler-exchange-httpd.c +++ b/src/exchange/taler-exchange-httpd.c @@ -104,6 +104,11 @@ struct GNUNET_CONFIGURATION_Handle *TEH_cfg; struct GNUNET_TIME_Relative TEH_max_keys_caching; /** + * How long is the delay before we close reserves? + */ +struct GNUNET_TIME_Relative TEH_reserve_closing_delay; + +/** * Master public key (according to the * configuration in the exchange directory). (global) */ @@ -1067,6 +1072,21 @@ exchange_serve_process_config (void) } if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_time (TEH_cfg, + "exchangedb", + "IDLE_RESERVE_EXPIRATION_TIME", + &TEH_reserve_closing_delay)) + { + GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, + "exchangedb", + "IDLE_RESERVE_EXPIRATION_TIME"); + /* use default */ + TEH_reserve_closing_delay + = GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_WEEKS, + 4); + } + + if (GNUNET_OK != + GNUNET_CONFIGURATION_get_value_time (TEH_cfg, "exchange", "MAX_KEYS_CACHING", &TEH_max_keys_caching)) |