summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_responses.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-07-10 22:33:04 +0200
committerChristian Grothoff <christian@grothoff.org>2020-07-10 22:33:04 +0200
commitddf95c491af05732220ac35c6fb1bea48e6f4050 (patch)
tree7003f28a16a693c10d71ba2ddd16232491c2fb42 /src/exchange/taler-exchange-httpd_responses.c
parentd01c6fd9028ff766d7604533b30c949e5bec5527 (diff)
downloadexchange-ddf95c491af05732220ac35c6fb1bea48e6f4050.tar.gz
exchange-ddf95c491af05732220ac35c6fb1bea48e6f4050.tar.bz2
exchange-ddf95c491af05732220ac35c6fb1bea48e6f4050.zip
remove unused/unusable coin_sig, return correct coin_pub in recoup-reveal failure context
Diffstat (limited to 'src/exchange/taler-exchange-httpd_responses.c')
-rw-r--r--src/exchange/taler-exchange-httpd_responses.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/exchange/taler-exchange-httpd_responses.c b/src/exchange/taler-exchange-httpd_responses.c
index 444729a2..4bcb9e7a 100644
--- a/src/exchange/taler-exchange-httpd_responses.c
+++ b/src/exchange/taler-exchange-httpd_responses.c
@@ -250,7 +250,7 @@ TEH_RESPONSE_compile_transaction_history (
TALER_SIGNATURE_EXCHANGE_CONFIRM_RECOUP_REFRESH),
.purpose.size = htonl (sizeof (pc)),
.timestamp = GNUNET_TIME_absolute_hton (pr->timestamp),
- .coin_pub = *coin_pub,
+ .coin_pub = pr->coin.coin_pub,
.old_coin_pub = pr->old_coin_pub
};
@@ -273,7 +273,7 @@ TEH_RESPONSE_compile_transaction_history (
if (0 !=
json_array_append_new (
history,
- json_pack ("{s:s, s:o, s:o, s:o, s:o, s:o, s:o}",
+ json_pack ("{s:s, s:o, s:o, s:o, s:o, s:o}",
"type",
"OLD-COIN-RECOUP",
"amount",
@@ -284,8 +284,6 @@ TEH_RESPONSE_compile_transaction_history (
GNUNET_JSON_from_data_auto (&epub),
"coin_pub",
GNUNET_JSON_from_data_auto (&pr->coin.coin_pub),
- "coin_sig",
- GNUNET_JSON_from_data_auto (&pr->coin_sig),
"timestamp",
GNUNET_JSON_from_time_abs (pr->timestamp))))
{