summaryrefslogtreecommitdiff
path: root/src/wire/plugin_wire_test.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-03-02 21:07:27 +0100
committerChristian Grothoff <christian@grothoff.org>2016-03-02 21:07:27 +0100
commit17ff4f5e97b981f0b3eebd6e3923fe60dc75edd5 (patch)
tree585b6cbe92aec91b2e186206c1bfe746a0cd85e6 /src/wire/plugin_wire_test.c
parent531272a92a5aa08559436138ff5106a6bff1b361 (diff)
parent201b2b3d1af2a4d44fe32c8b0312d935845cf129 (diff)
downloadexchange-17ff4f5e97b981f0b3eebd6e3923fe60dc75edd5.tar.gz
exchange-17ff4f5e97b981f0b3eebd6e3923fe60dc75edd5.tar.bz2
exchange-17ff4f5e97b981f0b3eebd6e3923fe60dc75edd5.zip
fixing #4230 in bank-lib
Diffstat (limited to 'src/wire/plugin_wire_test.c')
-rw-r--r--src/wire/plugin_wire_test.c29
1 files changed, 28 insertions, 1 deletions
diff --git a/src/wire/plugin_wire_test.c b/src/wire/plugin_wire_test.c
index d6bf411c1..9503e1ca5 100644
--- a/src/wire/plugin_wire_test.c
+++ b/src/wire/plugin_wire_test.c
@@ -46,7 +46,7 @@ struct TestClosure
/**
* Number of the account that the exchange has at the bank.
*/
- uint64_t exchange_account_no;
+ unsigned long long exchange_account_no;
/**
* Handle to the bank task, or NULL.
@@ -494,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);
@@ -556,6 +557,32 @@ libtaler_plugin_wire_test_init (void *cls)
return NULL;
}
tc = GNUNET_new (struct TestClosure);
+ if (GNUNET_OK !=
+ GNUNET_CONFIGURATION_get_value_number (cfg,
+ "wire-test",
+ "BANK_ACCOUNT_NO",
+ &tc->exchange_account_no))
+ {
+ GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
+ "wire-test",
+ "BANK_ACCOUNT_NO");
+ GNUNET_free (uri);
+ GNUNET_free (tc);
+ return NULL;
+ }
+ if (GNUNET_OK !=
+ GNUNET_CONFIGURATION_get_value_string (cfg,
+ "exchange",
+ "CURRENCY",
+ &tc->currency))
+ {
+ GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
+ "exchange",
+ "CURRENCY");
+ GNUNET_free (uri);
+ GNUNET_free (tc);
+ return NULL;
+ }
tc->bank = TALER_BANK_init (uri);
if (NULL == tc->bank)
{