aboutsummaryrefslogtreecommitdiff
path: root/src/exchange-tools
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-05-08 13:18:36 +0200
committerChristian Grothoff <christian@grothoff.org>2017-05-08 13:18:36 +0200
commit20aad54c3e010020185c76d9e0727f3f497c2f73 (patch)
tree37013453e198452b30710fb9165a2f5389cb6af9 /src/exchange-tools
parent2dcaffe4510410e568d637c1e251e230e2df41d9 (diff)
remove dead transfer details field from reserves_in (API, exchangedb, etc.)
Diffstat (limited to 'src/exchange-tools')
-rw-r--r--src/exchange-tools/taler-exchange-reservemod.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/exchange-tools/taler-exchange-reservemod.c b/src/exchange-tools/taler-exchange-reservemod.c
index 626499056..84595d199 100644
--- a/src/exchange-tools/taler-exchange-reservemod.c
+++ b/src/exchange-tools/taler-exchange-reservemod.c
@@ -80,6 +80,7 @@ run_transaction (const struct TALER_ReservePublicKeyP *reserve_pub,
{
int ret;
struct TALER_EXCHANGEDB_Session *session;
+ void *json_str;
session = plugin->get_session (plugin->cls);
if (NULL == session)
@@ -89,15 +90,22 @@ run_transaction (const struct TALER_ReservePublicKeyP *reserve_pub,
return GNUNET_SYSERR;
}
/* FIXME: maybe allow passing timestamp via command-line? */
+ json_str = json_dumps (tdetails,
+ JSON_INDENT(2));
+ if (NULL == json_str)
+ {
+ GNUNET_break (0); /* out of memory? */
+ return GNUNET_SYSERR;
+ }
ret = plugin->reserves_in_insert (plugin->cls,
session,
reserve_pub,
add_value,
GNUNET_TIME_absolute_get (),
jdetails,
- "FIXME",
- 5,
- tdetails);
+ json_str,
+ strlen (json_str));
+ free (json_str);
if (GNUNET_SYSERR == ret)
{
fprintf (stderr,