diff options
Diffstat (limited to 'src/exchange/taler-exchange-wirewatch.c')
-rw-r--r-- | src/exchange/taler-exchange-wirewatch.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/exchange/taler-exchange-wirewatch.c b/src/exchange/taler-exchange-wirewatch.c index cc99e42c3..2993999a8 100644 --- a/src/exchange/taler-exchange-wirewatch.c +++ b/src/exchange/taler-exchange-wirewatch.c | |||
@@ -31,6 +31,12 @@ | |||
31 | 31 | ||
32 | 32 | ||
33 | /** | 33 | /** |
34 | * How long to wait for an HTTP reply if there | ||
35 | * are no transactions pending at the server? | ||
36 | */ | ||
37 | #define LONGPOLL_TIMEOUT GNUNET_TIME_UNIT_MINUTES | ||
38 | |||
39 | /** | ||
34 | * What is the maximum batch size we use for credit history | 40 | * What is the maximum batch size we use for credit history |
35 | * requests with the bank. See `batch_size` below. | 41 | * requests with the bank. See `batch_size` below. |
36 | */ | 42 | */ |
@@ -545,7 +551,7 @@ history_cb (void *cls, | |||
545 | &details->reserve_pub, | 551 | &details->reserve_pub, |
546 | &details->amount, | 552 | &details->amount, |
547 | details->execution_date, | 553 | details->execution_date, |
548 | details->debit_account_url, | 554 | details->debit_account_uri, |
549 | wa->ai->section_name, | 555 | wa->ai->section_name, |
550 | serial_id); | 556 | serial_id); |
551 | switch (qs) | 557 | switch (qs) |
@@ -674,6 +680,9 @@ find_transfers (void *cls) | |||
674 | wa_pos->ai->auth, | 680 | wa_pos->ai->auth, |
675 | wa_pos->batch_start, | 681 | wa_pos->batch_start, |
676 | limit, | 682 | limit, |
683 | test_mode | ||
684 | ? GNUNET_TIME_UNIT_ZERO | ||
685 | : LONGPOLL_TIMEOUT, | ||
677 | &history_cb, | 686 | &history_cb, |
678 | wa_pos); | 687 | wa_pos); |
679 | if (NULL == wa_pos->hh) | 688 | if (NULL == wa_pos->hh) |