diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-05-01 13:16:03 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-05-01 13:16:03 +0200 |
commit | a4ede7caec835cf530f53718b6303a88ae4f1581 (patch) | |
tree | b921f8a7e4cd98b65e460165f63aac87065c9e5d | |
parent | 3d80b204595ce51cfcca36688017b041b0f875b9 (diff) | |
download | exchange-a4ede7caec835cf530f53718b6303a88ae4f1581.tar.xz |
add batch withdraw to demultiplexer
-rw-r--r-- | src/exchange/taler-exchange-httpd.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c index d84289c24..71edae65d 100644 --- a/src/exchange/taler-exchange-httpd.c +++ b/src/exchange/taler-exchange-httpd.c @@ -30,6 +30,7 @@ #include <limits.h> #include "taler_mhd_lib.h" #include "taler-exchange-httpd_auditors.h" +#include "taler-exchange-httpd_batch-withdraw.h" #include "taler-exchange-httpd_contract.h" #include "taler-exchange-httpd_csr.h" #include "taler-exchange-httpd_deposit.h" @@ -72,6 +73,12 @@ #define WITH_P2P 1 /** + * Should the experimental batch withdraw be supported? + * ON for testing disable for 0.9.0 release! + */ +#define WITH_EXPERIMENTAL 1 + +/** * Backlog for listen operation on unix domain sockets. */ #define UNIX_BACKLOG 50 @@ -367,6 +374,12 @@ handle_post_reserves (struct TEH_RequestContext *rc, .op = "withdraw", .handler = &TEH_handler_withdraw }, +#if WITH_EXPERIMENTAL + { + .op = "batch-withdraw", + .handler = &TEH_handler_batch_withdraw + }, +#endif { .op = "status", .handler = &TEH_handler_reserves_status |