diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-03-10 14:25:57 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-03-10 14:25:57 +0100 |
commit | f6684c1ae3c693df9f88cb347f8afb2748cee17d (patch) | |
tree | 9d2c6e06c14e426422ac77b07fc4a6f55c8b296f /src/exchange/taler-exchange-httpd_keystate.c | |
parent | 65062e4354f9e4ba9e2482101cd10c2ee7e757f8 (diff) | |
download | exchange-f6684c1ae3c693df9f88cb347f8afb2748cee17d.tar.gz exchange-f6684c1ae3c693df9f88cb347f8afb2748cee17d.tar.bz2 exchange-f6684c1ae3c693df9f88cb347f8afb2748cee17d.zip |
actually look at recoup/revocations in libtalerexchange and expose the result to clients; make exchange API follow specification
Diffstat (limited to 'src/exchange/taler-exchange-httpd_keystate.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_keystate.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/exchange/taler-exchange-httpd_keystate.c b/src/exchange/taler-exchange-httpd_keystate.c index 75e20ad04..af0920c55 100644 --- a/src/exchange/taler-exchange-httpd_keystate.c +++ b/src/exchange/taler-exchange-httpd_keystate.c @@ -909,10 +909,18 @@ revocations_iter (void *cls, handle_signal (SIGTERM); return GNUNET_SYSERR; } - GNUNET_assert (0 == - json_array_append_new (rfc->recoup_array, - GNUNET_JSON_from_data_auto ( - denom_hash))); + + { + json_t *obj; + + obj = json_pack ("{s:o}", + "h_denom_pub", + GNUNET_JSON_from_data_auto (denom_hash)); + GNUNET_assert (NULL != obj); + GNUNET_assert (0 == + json_array_append_new (rfc->recoup_array, + obj)); + } return GNUNET_OK; } |