summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2019-03-18 17:52:20 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2019-03-18 17:52:20 +0100
commit59075946de79276104c1302293deababa18ac5d1 (patch)
tree4d21228c01f5d5467b8f8effc9540113310e2b79 /src
parent88f80b8b4bd074395fccca0e59f7505314cfaa43 (diff)
downloadexchange-59075946de79276104c1302293deababa18ac5d1.tar.gz
exchange-59075946de79276104c1302293deababa18ac5d1.tar.bz2
exchange-59075946de79276104c1302293deababa18ac5d1.zip
Fix wirewatch.
Use negative delta (in /history requests) when the wirewatch is run for the very first time against the exchange bank account. This change was inspired by report #5649.
Diffstat (limited to 'src')
-rw-r--r--src/exchange/taler-exchange-wirewatch.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/exchange/taler-exchange-wirewatch.c b/src/exchange/taler-exchange-wirewatch.c
index 9ec11296e..747ec59db 100644
--- a/src/exchange/taler-exchange-wirewatch.c
+++ b/src/exchange/taler-exchange-wirewatch.c
@@ -168,7 +168,7 @@ static int reset_mode;
/**
* How many transactions do we retrieve per batch?
*/
-static unsigned int batch_size = 1024;
+static long long int batch_size = 1024;
/**
* How many transactions did we see in the current batch?
@@ -640,12 +640,13 @@ find_transfers (void *cls)
(0 != last_row_off_size) ) );
delay = GNUNET_YES;
current_batch_size = 0;
+
hh = wa_pos->wire_plugin->get_history (wa_pos->wire_plugin->cls,
wa_pos->section_name,
TALER_BANK_DIRECTION_CREDIT,
last_row_off,
last_row_off_size,
- batch_size,
+ NULL != last_row_off ? batch_size : (-1) * batch_size,
&history_cb,
session);
if (NULL == hh)