summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_keystate.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/exchange/taler-exchange-httpd_keystate.c')
-rw-r--r--src/exchange/taler-exchange-httpd_keystate.c16
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;
}