diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2018-05-10 19:49:23 +0200 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2018-05-10 19:49:23 +0200 |
commit | 9259ddb29aff66210562f064a03532d24ec2489b (patch) | |
tree | a12123fa1273df8290cd6ff1b547c8bf25fcb3ac | |
parent | 5b04334f7c386759429c25d6cee21df7dc902a75 (diff) | |
download | merchant-9259ddb29aff66210562f064a03532d24ec2489b.tar.gz merchant-9259ddb29aff66210562f064a03532d24ec2489b.tar.bz2 merchant-9259ddb29aff66210562f064a03532d24ec2489b.zip |
--with-pybank option removed.
Paygen must be run against Python bank, as all the
components involved uses real databases on the hosting
system, and so must do the bank.
Fakebank is not able to fit in this picture, as it
uses a in-memory (mock) database, which starts "fresh"
upon every invocation and whose data cannot be consistent
with data that exists into the ordinary databases used
by other components.
-rw-r--r-- | src/merchant-tools/taler-merchant-generate-payments_new.c | 32 |
1 files changed, 5 insertions, 27 deletions
diff --git a/src/merchant-tools/taler-merchant-generate-payments_new.c b/src/merchant-tools/taler-merchant-generate-payments_new.c index b8498c83..12375de6 100644 --- a/src/merchant-tools/taler-merchant-generate-payments_new.c +++ b/src/merchant-tools/taler-merchant-generate-payments_new.c @@ -74,12 +74,6 @@ static unsigned int result; static struct GNUNET_OS_Process *bankd; /** - * Indicates whether we'll use the Python bank (GNUNET_YES), - * or the fakebank. - */ -static int with_pybank; - -/** * Merchant process. */ static struct GNUNET_OS_Process *merchantd; @@ -184,17 +178,8 @@ run (void *cls, TALER_TESTING_cmd_end () }; - if (GNUNET_YES == with_pybank) - { - TALER_TESTING_run (is, - commands); - return; - } - - TALER_TESTING_run_with_fakebank - (is, - commands, - bank_url); + TALER_TESTING_run (is, + commands); } /** @@ -269,12 +254,6 @@ main (int argc, "will log to file LF", &logfile), - GNUNET_GETOPT_option_flag - ('p', - "with-pybank", - "Use the Python bank, if given", - &with_pybank), - GNUNET_GETOPT_OPTION_END }; @@ -308,10 +287,9 @@ main (int argc, return MISSING_BANK_URL; } - if ((GNUNET_YES == with_pybank) - && NULL == (bankd = TALER_TESTING_run_bank - (default_config_file, - bank_url))) + if ( NULL == (bankd = TALER_TESTING_run_bank + (default_config_file, + bank_url))) { TALER_LOG_ERROR ("Failed to run the bank\n"); terminate_process (bankd); |