aboutsummaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_purses_get.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-04-26 13:24:44 +0200
committerChristian Grothoff <christian@grothoff.org>2022-04-26 13:24:51 +0200
commitefb8c8037b0d9e4d0407e62156b0021f790ad974 (patch)
tree906c64f536d6b60b41031cdb605bad1b8cf43726 /src/exchange/taler-exchange-httpd_purses_get.c
parenta92d3aae7bd7f6fe894fb901c351a0ce320c87a3 (diff)
-implement purses get db sketch
Diffstat (limited to 'src/exchange/taler-exchange-httpd_purses_get.c')
-rw-r--r--src/exchange/taler-exchange-httpd_purses_get.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/exchange/taler-exchange-httpd_purses_get.c b/src/exchange/taler-exchange-httpd_purses_get.c
index dd904d79..32527288 100644
--- a/src/exchange/taler-exchange-httpd_purses_get.c
+++ b/src/exchange/taler-exchange-httpd_purses_get.c
@@ -295,7 +295,6 @@ TEH_handler_purses_get (struct TEH_RequestContext *rc,
}
} /* end first-time initialization */
-#if FIXME
{
enum GNUNET_DB_QueryStatus qs;
@@ -324,21 +323,20 @@ TEH_handler_purses_get (struct TEH_RequestContext *rc,
case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS:
return TALER_MHD_reply_with_error (rc->connection,
MHD_HTTP_NOT_FOUND,
- TALER_EC_EXCHANGE_PURSE_UNKNOWN,
+ TALER_EC_EXCHANGE_GENERIC_PURSE_UNKNOWN,
NULL);
case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
break; /* handled below */
}
}
- if (GNUNET_TIME_absolute_is_past (gc->purse_expiration))
+ if (GNUNET_TIME_absolute_is_past (gc->purse_expiration.abs_time))
{
return TALER_MHD_reply_with_error (rc->connection,
MHD_HTTP_GONE,
- TALER_EC_EXCHANGE_PURSE_EXPIRED,
+ TALER_EC_EXCHANGE_GENERIC_PURSE_EXPIRED,
GNUNET_TIME_timestamp2s (
gc->purse_expiration));
}
-#endif
// FIXME: compare amount to deposited amount;
// if below, set 'deposit_timestamp' to zero!