summaryrefslogtreecommitdiff
path: root/src/exchange
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-10-14 00:29:32 +0200
committerChristian Grothoff <christian@grothoff.org>2022-10-14 00:30:52 +0200
commit5f333f817c0fe4d66d1223833f8b8f7f22ad174c (patch)
treecbb80400469e0e0af9fe9bf29d0a7b270597f5ec /src/exchange
parent1ee69f6f1d93349a3e576a86c1d93d23ccec28ce (diff)
downloadexchange-5f333f817c0fe4d66d1223833f8b8f7f22ad174c.tar.gz
exchange-5f333f817c0fe4d66d1223833f8b8f7f22ad174c.tar.bz2
exchange-5f333f817c0fe4d66d1223833f8b8f7f22ad174c.zip
add reserve-open-deposit transactions to coin histories
Diffstat (limited to 'src/exchange')
-rw-r--r--src/exchange/taler-exchange-httpd_responses.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-httpd_responses.c b/src/exchange/taler-exchange-httpd_responses.c
index 516b36460..77f01de60 100644
--- a/src/exchange/taler-exchange-httpd_responses.c
+++ b/src/exchange/taler-exchange-httpd_responses.c
@@ -424,6 +424,31 @@ TEH_RESPONSE_compile_transaction_history (
}
break;
}
+
+ case TALER_EXCHANGEDB_TT_RESERVE_OPEN:
+ {
+ struct TALER_EXCHANGEDB_ReserveOpenListEntry *role
+ = pos->details.reserve_open;
+
+ if (0 !=
+ json_array_append_new (
+ history,
+ GNUNET_JSON_PACK (
+ GNUNET_JSON_pack_string ("type",
+ "RESERVE-OPEN-DEPOSIT"),
+ TALER_JSON_pack_amount ("coin_contribution",
+ &role->coin_contribution),
+ GNUNET_JSON_pack_data_auto ("reserve_sig",
+ &role->reserve_sig),
+ GNUNET_JSON_pack_data_auto ("coin_sig",
+ &role->coin_sig))))
+ {
+ GNUNET_break (0);
+ json_decref (history);
+ return NULL;
+ }
+ break;
+ }
}
}
return history;