summaryrefslogtreecommitdiff
path: root/src/bank-lib/fakebank_twg_history.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-09-24 11:51:47 +0200
committerChristian Grothoff <christian@grothoff.org>2023-09-24 11:51:47 +0200
commit7a3b1c6b88a86ccb98a9d60675f8f0c1a7e3fe45 (patch)
tree7a89527ea1551a4b97897db01bff1c942825811d /src/bank-lib/fakebank_twg_history.c
parent4c220dce4d5ef33e00e937e236a744324af9dcf0 (diff)
downloadexchange-7a3b1c6b88a86ccb98a9d60675f8f0c1a7e3fe45.tar.gz
exchange-7a3b1c6b88a86ccb98a9d60675f8f0c1a7e3fe45.tar.bz2
exchange-7a3b1c6b88a86ccb98a9d60675f8f0c1a7e3fe45.zip
fix various FIXMEs
Diffstat (limited to 'src/bank-lib/fakebank_twg_history.c')
-rw-r--r--src/bank-lib/fakebank_twg_history.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/src/bank-lib/fakebank_twg_history.c b/src/bank-lib/fakebank_twg_history.c
index 062285078..44bae314b 100644
--- a/src/bank-lib/fakebank_twg_history.c
+++ b/src/bank-lib/fakebank_twg_history.c
@@ -42,7 +42,6 @@ history_cleanup (void *cls)
{
struct HistoryContext *hc = cls;
- GNUNET_free (hc->payto_uri);
json_decref (hc->history);
GNUNET_free (hc);
}
@@ -93,13 +92,6 @@ TALER_FAKEBANK_twg_get_debit_history_ (
TALER_EC_BANK_UNKNOWN_ACCOUNT,
account);
}
- GNUNET_asprintf (&hc->payto_uri,
- "payto://x-taler-bank/localhost/%s?receiver-name=%s",
- account,
- hc->acc->receiver_name);
- /* New invariant: */
- GNUNET_assert (0 == strcmp (hc->payto_uri,
- hc->acc->payto_uri));
hc->history = json_array ();
if (NULL == hc->history)
{
@@ -294,7 +286,7 @@ finish:
MHD_HTTP_OK,
GNUNET_JSON_pack_string (
"debit_account",
- hc->payto_uri),
+ hc->acc->payto_uri),
GNUNET_JSON_pack_array_steal (
"outgoing_transactions",
h));
@@ -347,14 +339,6 @@ TALER_FAKEBANK_twg_get_credit_history_ (
TALER_EC_BANK_UNKNOWN_ACCOUNT,
account);
}
- /* FIXME: was simply: acc->payto_uri -- same!? */
- GNUNET_asprintf (&hc->payto_uri,
- "payto://x-taler-bank/%s/%s?receiver-name=%s",
- h->hostname,
- account,
- hc->acc->receiver_name);
- GNUNET_assert (0 == strcmp (hc->payto_uri,
- hc->acc->payto_uri));
hc->history = json_array ();
if (NULL == hc->history)
{
@@ -529,7 +513,7 @@ finish:
MHD_HTTP_OK,
GNUNET_JSON_pack_string (
"credit_account",
- hc->payto_uri),
+ hc->acc->payto_uri),
GNUNET_JSON_pack_array_steal (
"incoming_transactions",
h));