diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-11-14 22:31:23 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-11-14 22:31:23 +0100 |
commit | 15980ee476270bc0af4dc1327be0744ce1e6194e (patch) | |
tree | 5be1bdbe0044161d516f5c480ea8fdd2a641f9d0 /src/merchant-tools/taler-merchant-benchmark.c | |
parent | af66f5c044f57937f87b86eea95b606e52f7deb8 (diff) |
adaptations of merchant to GNUnet fix #8962
Diffstat (limited to 'src/merchant-tools/taler-merchant-benchmark.c')
-rw-r--r-- | src/merchant-tools/taler-merchant-benchmark.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/merchant-tools/taler-merchant-benchmark.c b/src/merchant-tools/taler-merchant-benchmark.c index 238b9f03..63a7a7f6 100644 --- a/src/merchant-tools/taler-merchant-benchmark.c +++ b/src/merchant-tools/taler-merchant-benchmark.c @@ -25,6 +25,7 @@ #include "platform.h" #include <taler/taler_util.h> #include <taler/taler_testing_lib.h> +#include "taler_merchant_util.h" #include "taler_merchant_testing_lib.h" @@ -407,6 +408,7 @@ main (int argc, &use_fakebank), GNUNET_GETOPT_option_version (PACKAGE_VERSION " " VCS_VERSION), GNUNET_GETOPT_option_help ( + TALER_MERCHANT_project_data (), "Runs benchmark logic against merchant backend. " "Must be used with either 'ordinary' or 'corner' sub-commands."), GNUNET_GETOPT_option_string ( @@ -431,7 +433,9 @@ main (int argc, "fakebank", "use fakebank for the banking system", &use_fakebank), - GNUNET_GETOPT_option_help ("Populate databases with corner case payments"), + GNUNET_GETOPT_option_help ( + TALER_MERCHANT_project_data (), + "Populate databases with corner case payments"), GNUNET_GETOPT_option_string ( 'l', "logfile", @@ -480,6 +484,7 @@ main (int argc, "use fakebank for the banking system", &use_fakebank), GNUNET_GETOPT_option_help ( + TALER_MERCHANT_project_data (), "Generate Taler ordinary payments" " to populate the databases"), GNUNET_GETOPT_option_string ( @@ -500,7 +505,7 @@ main (int argc, }; const char *default_config_file; - default_config_file = GNUNET_OS_project_data_get ()->user_config_file; + default_config_file = TALER_MERCHANT_project_data ()->user_config_file; options = root_options; if (NULL != argv[1]) { @@ -552,7 +557,7 @@ main (int argc, { struct GNUNET_CONFIGURATION_Handle *cfg; - cfg = GNUNET_CONFIGURATION_create (); + cfg = GNUNET_CONFIGURATION_create (TALER_MERCHANT_project_data ()); if (GNUNET_OK != GNUNET_CONFIGURATION_load (cfg, cfg_filename)) |