summaryrefslogtreecommitdiff
path: root/src/bank-lib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-05-30 13:34:34 +0200
committerChristian Grothoff <christian@grothoff.org>2022-05-30 13:34:39 +0200
commit7f902c0fc9bc7e0832d01169e6f580ab671fbf08 (patch)
treed4588c8517adfa195d360c5bb03eb13b1f071a02 /src/bank-lib
parentd40da21e905ef9f5370bcd0e693778053878fc34 (diff)
downloadexchange-7f902c0fc9bc7e0832d01169e6f580ab671fbf08.tar.gz
exchange-7f902c0fc9bc7e0832d01169e6f580ab671fbf08.tar.bz2
exchange-7f902c0fc9bc7e0832d01169e6f580ab671fbf08.zip
-sketch API for RSA parallel signing
Diffstat (limited to 'src/bank-lib')
-rw-r--r--src/bank-lib/fakebank.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c
index 66e44e1db..624b4069a 100644
--- a/src/bank-lib/fakebank.c
+++ b/src/bank-lib/fakebank.c
@@ -2010,6 +2010,11 @@ handle_debit_history (struct TALER_FAKEBANK_Handle *h,
{
GNUNET_assert (0 ==
pthread_mutex_unlock (&h->big_lock));
+ if (overflow)
+ return TALER_MHD_reply_with_ec (
+ connection,
+ TALER_EC_BANK_ANCIENT_TRANSACTION_GONE,
+ NULL);
return TALER_MHD_REPLY_JSON_PACK (
connection,
MHD_HTTP_OK,
@@ -2213,14 +2218,19 @@ handle_credit_history (struct TALER_FAKEBANK_Handle *h,
if ( (NULL == t) ||
overflow)
{
+ GNUNET_free (credit_payto);
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"No transactions available, suspending request\n");
- GNUNET_free (credit_payto);
if (GNUNET_TIME_relative_is_zero (ha.lp_timeout) &&
(0 < ha.delta))
{
GNUNET_assert (0 ==
pthread_mutex_unlock (&h->big_lock));
+ if (overflow)
+ return TALER_MHD_reply_with_ec (
+ connection,
+ TALER_EC_BANK_ANCIENT_TRANSACTION_GONE,
+ NULL);
return TALER_MHD_REPLY_JSON_PACK (connection,
MHD_HTTP_OK,
GNUNET_JSON_pack_array_steal (