aboutsummaryrefslogtreecommitdiff
path: root/src/bank-lib
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-01-17 03:13:50 +0100
committerFlorian Dold <florian.dold@gmail.com>2020-01-17 03:13:58 +0100
commit734fd8cc7d3fc71418aafedf9b920345b51b0b53 (patch)
treed48edd3ba25e7ae12f89461f832f7acdf973467f /src/bank-lib
parent4b16198b43ccb63a7efc2c170622a69759f8ed8f (diff)
test_bank_api_with_fakebank passes again
Diffstat (limited to 'src/bank-lib')
-rw-r--r--src/bank-lib/fakebank.c34
1 files changed, 26 insertions, 8 deletions
diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c
index fbd554aef..758c44cfc 100644
--- a/src/bank-lib/fakebank.c
+++ b/src/bank-lib/fakebank.c
@@ -950,10 +950,19 @@ handle_debit_history (struct TALER_FAKEBANK_Handle *h,
char *credit_payto;
char *debit_payto;
- credit_payto = TALER_payto_xtalerbank_make (h->my_baseurl,
- pos->credit_account);
- debit_payto = TALER_payto_xtalerbank_make (h->my_baseurl,
- pos->debit_account);
+ GNUNET_asprintf (&credit_payto,
+ "payto://x-taler-bank/localhost/%s",
+ pos->credit_account);
+
+ GNUNET_asprintf (&debit_payto,
+ "payto://x-taler-bank/localhost/%s",
+ pos->debit_account);
+
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "made credit_payto (%s) from credit_account (%s) within fakebank\n",
+ credit_payto,
+ pos->credit_account);
+
trans = json_pack
("{s:I, s:o, s:o, s:s, s:s, s:s, s:o}",
"row_id", (json_int_t) pos->row_id,
@@ -1070,10 +1079,19 @@ handle_credit_history (struct TALER_FAKEBANK_Handle *h,
char *credit_payto;
char *debit_payto;
- credit_payto = TALER_payto_xtalerbank_make (h->my_baseurl,
- pos->credit_account);
- debit_payto = TALER_payto_xtalerbank_make (h->my_baseurl,
- pos->debit_account);
+ GNUNET_asprintf (&credit_payto,
+ "payto://x-taler-bank/localhost/%s",
+ pos->credit_account);
+
+ GNUNET_asprintf (&debit_payto,
+ "payto://x-taler-bank/localhost/%s",
+ pos->debit_account);
+
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "made credit_payto (%s) from credit_account (%s) within fakebank\n",
+ credit_payto,
+ pos->credit_account);
+
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Returning transaction %s->%s (%s) at %llu\n",
pos->debit_account,