From c1c02b8a3cc43c80b61f9e780d46c17b699abf72 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 9 Oct 2022 23:23:14 +0200 Subject: -implementing do_reserves_open logic --- src/exchangedb/plugin_exchangedb_postgres.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/exchangedb/plugin_exchangedb_postgres.c') diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c index 1bb835877..a369b7107 100644 --- a/src/exchangedb/plugin_exchangedb_postgres.c +++ b/src/exchangedb/plugin_exchangedb_postgres.c @@ -15567,6 +15567,7 @@ libtaler_plugin_exchangedb_postgres_init (void *cls) const struct GNUNET_CONFIGURATION_Handle *cfg = cls; struct PostgresClosure *pg; struct TALER_EXCHANGEDB_Plugin *plugin; + unsigned long long dpl; pg = GNUNET_new (struct PostgresClosure); pg->cfg = cfg; @@ -15625,6 +15626,21 @@ libtaler_plugin_exchangedb_postgres_init (void *cls) "exchangedb", "AGGREGATOR_SHIFT"); } + if (GNUNET_OK != + GNUNET_CONFIGURATION_get_value_number (cfg, + "exchangedb", + "DEFAULT_PURSE_LIMIT", + &dpl)) + { + GNUNET_log_config_missing (GNUNET_ERROR_TYPE_WARNING, + "exchangedb", + "DEFAULT_PURSE_LIMIT"); + pg->def_purse_limit = 1; + } + else + { + pg->def_purse_limit = (uint32_t) dpl; + } if (GNUNET_OK != TALER_config_get_currency (cfg, -- cgit v1.2.3