summaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_reserves_open.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-09-27 15:21:51 +0200
committerChristian Grothoff <christian@grothoff.org>2022-09-27 15:21:51 +0200
commit0de4db77551458ad338bda8a76ec2c70484550f8 (patch)
treeb73c3a4148e7ab51cd0eddb630179a332fe38c0a /src/lib/exchange_api_reserves_open.c
parent7d8c49b3c74865331fb9d269a9efdb9ba0f52eab (diff)
downloadexchange-0de4db77551458ad338bda8a76ec2c70484550f8.tar.gz
exchange-0de4db77551458ad338bda8a76ec2c70484550f8.tar.bz2
exchange-0de4db77551458ad338bda8a76ec2c70484550f8.zip
implement libtalerexchange:reserve_close API
Diffstat (limited to 'src/lib/exchange_api_reserves_open.c')
-rw-r--r--src/lib/exchange_api_reserves_open.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/exchange_api_reserves_open.c b/src/lib/exchange_api_reserves_open.c
index 8f3fab172..eb63f8fe9 100644
--- a/src/lib/exchange_api_reserves_open.c
+++ b/src/lib/exchange_api_reserves_open.c
@@ -278,6 +278,13 @@ handle_reserves_open_finished (void *cls,
rs.hr.ec = TALER_JSON_get_error_code (j);
rs.hr.hint = TALER_JSON_get_error_hint (j);
break;
+ case MHD_HTTP_CONFLICT:
+ // FIXME: not yet specified, but needed in
+ // case of double-spending or insufficient
+ // reserve balance!
+ rs.hr.ec = TALER_JSON_get_error_code (j);
+ rs.hr.hint = TALER_JSON_get_error_hint (j);
+ break;
case MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS:
if (GNUNET_OK !=
handle_reserves_open_kyc (roh,