aboutsummaryrefslogtreecommitdiff
path: root/src/exchange
diff options
context:
space:
mode:
Diffstat (limited to 'src/exchange')
-rw-r--r--src/exchange/exchange.conf2
-rw-r--r--src/exchange/taler-exchange-expire.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/exchange/exchange.conf b/src/exchange/exchange.conf
index df136d9e..58e57c82 100644
--- a/src/exchange/exchange.conf
+++ b/src/exchange/exchange.conf
@@ -54,7 +54,7 @@ ROUTER_IDLE_SLEEP_INTERVAL = 60 s
# by taler-exchange-expire (in time). It may take
# this much time for an expired purse to be really
# cleaned up and the coins refunded.
-EXPIRE_SHARD_SIZE = 5 m
+EXPIRE_SHARD_SIZE = 1 h
# How long should the transfer tool
# sleep if it has nothing to do?
diff --git a/src/exchange/taler-exchange-expire.c b/src/exchange/taler-exchange-expire.c
index b5df64a7..d99c430e 100644
--- a/src/exchange/taler-exchange-expire.c
+++ b/src/exchange/taler-exchange-expire.c
@@ -392,13 +392,13 @@ run_shard (void *cls)
GNUNET_SCHEDULER_shutdown ();
return;
}
- if (GNUNET_TIME_absolute_is_future (s->shard_start))
+ if (GNUNET_TIME_absolute_is_future (s->shard_end))
{
+ abort_shard (s);
GNUNET_assert (NULL == task);
- task = GNUNET_SCHEDULER_add_at (s->shard_start,
+ task = GNUNET_SCHEDULER_add_at (s->shard_end,
&run_shard,
NULL);
- abort_shard (s);
return;
}
/* If this is a first-time run, we immediately