remove redundant bank_url field

This commit is contained in:
Florian Dold 2020-01-18 04:00:35 +01:00
parent 08a447985c
commit add346eb6c
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
10 changed files with 16 additions and 21 deletions

View File

@ -268,11 +268,6 @@ TALER_TESTING_url_port_free (const char *url);
*/ */
struct TALER_TESTING_BankConfiguration struct TALER_TESTING_BankConfiguration
{ {
/**
* Bank base URL.
*/
char *bank_url;
/** /**
* Base URL of the exchange's bank account. Basically * Base URL of the exchange's bank account. Basically
* @e bank_url plus the exchange account. * @e bank_url plus the exchange account.

View File

@ -658,7 +658,7 @@ run (void *cls,
TALER_TESTING_run_with_fakebank (is, TALER_TESTING_run_with_fakebank (is,
commands, commands,
bc.bank_url); bc.exchange_auth.wire_gateway_url);
} }

View File

@ -111,11 +111,11 @@ run (void *cls,
GNUNET_log (GNUNET_ERROR_TYPE_INFO, GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Bank serves at `%s'\n", "Bank serves at `%s'\n",
bc.bank_url); bc.exchange_auth.wire_gateway_url);
if (GNUNET_YES == with_fakebank) if (GNUNET_YES == with_fakebank)
TALER_TESTING_run_with_fakebank (is, TALER_TESTING_run_with_fakebank (is,
commands, commands,
bc.bank_url); bc.exchange_auth.wire_gateway_url);
else else
TALER_TESTING_run (is, TALER_TESTING_run (is,
commands); commands);
@ -165,7 +165,8 @@ main (int argc,
} }
if (NULL == (bankd = TALER_TESTING_run_bank (CONFIG_FILE_PYBANK, if (NULL == (bankd = TALER_TESTING_run_bank (CONFIG_FILE_PYBANK,
bc.bank_url))) bc.exchange_auth.
wire_gateway_url)))
{ {
GNUNET_break (0); GNUNET_break (0);
return 77; return 77;

View File

@ -101,7 +101,7 @@ run (void *cls,
if (GNUNET_YES == with_fakebank) if (GNUNET_YES == with_fakebank)
TALER_TESTING_run_with_fakebank (is, TALER_TESTING_run_with_fakebank (is,
commands, commands,
bc.bank_url); bc.exchange_auth.wire_gateway_url);
else else
TALER_TESTING_run (is, TALER_TESTING_run (is,
commands); commands);
@ -187,7 +187,8 @@ main (int argc,
} }
if (NULL == (bankd = TALER_TESTING_run_bank (cfgfilename, if (NULL == (bankd = TALER_TESTING_run_bank (cfgfilename,
bc.bank_url))) bc.exchange_auth.
wire_gateway_url)))
{ {
GNUNET_break (0); GNUNET_break (0);
GNUNET_free (twister_url); GNUNET_free (twister_url);

View File

@ -778,7 +778,7 @@ run (void *cls,
TALER_TESTING_run_with_fakebank (is, TALER_TESTING_run_with_fakebank (is,
commands, commands,
bc.bank_url); bc.exchange_auth.wire_gateway_url);
} }
} }

View File

@ -178,7 +178,7 @@ run (void *cls,
TALER_TESTING_run_with_fakebank (is, TALER_TESTING_run_with_fakebank (is,
revocation, revocation,
bc.bank_url); bc.exchange_auth.wire_gateway_url);
} }

View File

@ -259,7 +259,7 @@ run (void *cls,
TALER_TESTING_run_with_fakebank (is, TALER_TESTING_run_with_fakebank (is,
commands, commands,
bc.bank_url); bc.exchange_auth.wire_gateway_url);
} }

View File

@ -450,7 +450,7 @@ run (void *cls,
TALER_TESTING_run_with_fakebank (is, TALER_TESTING_run_with_fakebank (is,
all, all,
bc.bank_url); bc.exchange_auth.wire_gateway_url);
} }

View File

@ -109,7 +109,7 @@ run (void *cls,
TALER_TESTING_run_with_fakebank (is, TALER_TESTING_run_with_fakebank (is,
all, all,
bc.bank_url); bc.exchange_auth.wire_gateway_url);
} }

View File

@ -361,7 +361,6 @@ TALER_TESTING_prepare_bank (const char *config_filename,
return GNUNET_SYSERR; return GNUNET_SYSERR;
} }
GNUNET_CONFIGURATION_destroy (cfg); GNUNET_CONFIGURATION_destroy (cfg);
bc->bank_url = GNUNET_strdup (bc->exchange_auth.wire_gateway_url);
bc->exchange_account_url = GNUNET_strdup (bc->exchange_auth.wire_gateway_url); bc->exchange_account_url = GNUNET_strdup (bc->exchange_auth.wire_gateway_url);
bc->exchange_payto = exchange_payto_uri; bc->exchange_payto = exchange_payto_uri;
bc->user42_payto = "payto://x-taler-bank/localhost/42"; bc->user42_payto = "payto://x-taler-bank/localhost/42";
@ -451,12 +450,11 @@ TALER_TESTING_prepare_fakebank (const char *config_filename,
(unsigned int) fakebank_port); (unsigned int) fakebank_port);
GNUNET_CONFIGURATION_destroy (cfg); GNUNET_CONFIGURATION_destroy (cfg);
bc->bank_url = GNUNET_strdup (bc->exchange_auth.wire_gateway_url);
if (GNUNET_OK != if (GNUNET_OK !=
TALER_TESTING_url_port_free (bc->bank_url)) TALER_TESTING_url_port_free (bc->exchange_auth.wire_gateway_url))
{ {
GNUNET_free (bc->bank_url); GNUNET_free (bc->exchange_auth.wire_gateway_url);
bc->bank_url = NULL; bc->exchange_auth.wire_gateway_url = NULL;
return GNUNET_SYSERR; return GNUNET_SYSERR;
} }
/* FIXME: this duplicates bc->exchange_auth.wire_gateway_url */ /* FIXME: this duplicates bc->exchange_auth.wire_gateway_url */