donau

Donation authority for GNU Taler (experimental)
Log | Files | Refs | Submodules | README | LICENSE

commit 6f79ab9a7c14716b645bcf5433f2164bc889194c
parent 31dc90f8f7bf2d9af0088587af8577ce52309707
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat, 27 Sep 2025 15:22:02 +0200

-simplify code, DCE

Diffstat:
Msrc/donau/donau-httpd.c | 25-------------------------
Msrc/donau/donau-httpd.h | 6------
Msrc/donau/donau.conf | 20--------------------
3 files changed, 0 insertions(+), 51 deletions(-)

diff --git a/src/donau/donau-httpd.c b/src/donau/donau-httpd.c @@ -105,12 +105,6 @@ static bool have_daemons; struct DONAUDB_Plugin *DH_plugin; /** - * Default number of fractional digits to render - * amounts with. - */ -unsigned int DH_currency_fraction_digits; - -/** * Our currency. */ char *DH_currency; @@ -799,25 +793,6 @@ donau_serve_process_config (void) return GNUNET_SYSERR; } - { - unsigned long long cfd; - - if (GNUNET_OK != - GNUNET_CONFIGURATION_get_value_number (DH_cfg, - "donau", - "CURRENCY_FRACTION_DIGITS", - &cfd)) - cfd = 0; - if (cfd > 8) - { - GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR, - "donau", - "CURRENCY_FRACTION_DIGITS", - "Value must be below 8"); - return GNUNET_SYSERR; - } - DH_currency_fraction_digits = (unsigned int) cfd; - } if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_string (DH_cfg, "donau", diff --git a/src/donau/donau-httpd.h b/src/donau/donau-httpd.h @@ -67,12 +67,6 @@ extern int DH_global_ret; extern struct DONAUDB_Plugin *DH_plugin; /** - * Default number of fractional digits to render - * amounts with. - */ -extern unsigned int DH_currency_fraction_digits; - -/** * Our currency. */ extern char *DH_currency; diff --git a/src/donau/donau.conf b/src/donau/donau.conf @@ -5,26 +5,6 @@ # Bearer access token required to manage charities. #ADMIN_BEARER_TOKEN = "secret-token:password" -# How many digits does the currency use by default on displays. -# Hint provided to wallets. Should be 2 for EUR/USD/CHF, -# and 0 for JPY. Default is 2 as that is most common. -# Maximum value is 8. Note that this is the number of -# fractions shown in the wallet by default, it is still -# possible to configure denominations with more digits -# and those will then be rendered using 'tiny' fraction -# capitals (like at gas stations) when present. -CURRENCY_FRACTION_DIGITS = 2 - -# Attribute encryption key for storing attributes encrypted -# in the database. Should be a high-entropy nonce. -ATTRIBUTE_ENCRYPTION_KEY = SET_ME_PLEASE - -# How long do we allow /keys to be cached at most? The actual -# limit is the minimum of this value and the first expected -# significant change in /keys based on the expiration times. -# Used to artificially reduce caching (addresses #5747). -# MAX_KEYS_CACHING = forever - # After how many requests should the donau auto-restart # (to address potential issues with memory fragmentation)? # If this option is not specified, auto-restarting is disabled.