aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2019-02-12 17:33:52 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2019-02-12 17:33:52 +0100
commit8315e151232dc0bea548cb9466c474a78a7140aa (patch)
treea4bbcc61441be3b2f1ccc7e7b12f76c8b2b1aa75 /src
parent82f01f111b2626362746112ba8c95e8a71e95924 (diff)
Fix transactions list request.
Diffstat (limited to 'src')
-rw-r--r--src/exchange-tools/taler-wire.c12
-rw-r--r--src/wire-plugins/plugin_wire_taler-bank.c2
2 files changed, 9 insertions, 5 deletions
diff --git a/src/exchange-tools/taler-wire.c b/src/exchange-tools/taler-wire.c
index 37d758abb..cff95858e 100644
--- a/src/exchange-tools/taler-wire.c
+++ b/src/exchange-tools/taler-wire.c
@@ -112,6 +112,15 @@ history_cb (void *cls,
{
char *row_off_enc;
+ if (TALER_BANK_DIRECTION_NONE == dir)
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Hit end of transactions list.\n");
+ global_ret = 0;
+ GNUNET_SCHEDULER_shutdown ();
+ return GNUNET_NO;
+ }
+
row_off_enc = GNUNET_STRINGS_data_to_string_alloc (row_off,
row_off_size);
/* Give more details on screen (??) */
@@ -121,9 +130,6 @@ history_cb (void *cls,
GNUNET_free (row_off_enc);
- if (TALER_BANK_DIRECTION_NONE == dir)
- global_ret = 0;
-
return GNUNET_OK;
}
diff --git a/src/wire-plugins/plugin_wire_taler-bank.c b/src/wire-plugins/plugin_wire_taler-bank.c
index 1947a5ae5..12ef82487 100644
--- a/src/wire-plugins/plugin_wire_taler-bank.c
+++ b/src/wire-plugins/plugin_wire_taler-bank.c
@@ -1096,8 +1096,6 @@ taler_bank_get_history (void *cls,
whh->hres_cb = hres_cb;
whh->hres_cb_cls = hres_cb_cls;
- GNUNET_log (GNUNET_ERROR_TYPE_INFO,
- "Requesting the transaction history.\n");
whh->hh = TALER_BANK_history (tc->ctx,
account.bank_base_url,
&whh->auth,