diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-03-04 11:57:57 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-03-04 11:57:57 +0100 |
commit | aba92c5bfa3efa9a7cabf2fc85b1f14bea2d8307 (patch) | |
tree | fec44c7e61e47592f5468632e5823fc3e48e679e /src/wire/plugin_wire_test.c | |
parent | d06fb4d8182e5213e6d59cf0c5fe2c8d4c4cef36 (diff) | |
parent | 17ff4f5e97b981f0b3eebd6e3923fe60dc75edd5 (diff) |
modify /wire/test to provide bank URI and bank account numbers
Diffstat (limited to 'src/wire/plugin_wire_test.c')
-rw-r--r-- | src/wire/plugin_wire_test.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/wire/plugin_wire_test.c b/src/wire/plugin_wire_test.c index 98d9281ce..1d19edf57 100644 --- a/src/wire/plugin_wire_test.c +++ b/src/wire/plugin_wire_test.c @@ -44,6 +44,11 @@ struct TestClosure char *currency; /** + * Number of the account that the exchange has at the bank. + */ + unsigned long long exchange_account_no; + + /** * Handle to the bank task, or NULL. */ struct GNUNET_SCHEDULER_Task *bt; @@ -489,6 +494,7 @@ test_execute_wire_transfer (void *cls, eh->aaih = TALER_BANK_admin_add_incoming (tc->bank, &bf.wtid, &amount, + (uint64_t) tc->exchange_account_no, (uint64_t) account_no, &execute_cb, eh); @@ -552,6 +558,19 @@ libtaler_plugin_wire_test_init (void *cls) } tc = GNUNET_new (struct TestClosure); if (GNUNET_OK != + GNUNET_CONFIGURATION_get_value_number (cfg, + "wire-test", + "BANK_ACCOUNT_NO_OUTGOING", + &tc->exchange_account_no)) + { + GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, + "wire-test", + "BANK_ACCOUNT_NO_OUTGOING"); + GNUNET_free (uri); + GNUNET_free (tc); + return NULL; + } + if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_string (cfg, "exchange", "CURRENCY", |