exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit b51962715356a6783e02d07c292c262a35919281
parent ff7a57feb809de2144396d95ec49499db48af14b
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue,  7 Apr 2026 10:38:25 +0200

return history_offset as per spec

Diffstat:
Msrc/exchange/taler-exchange-httpd_get-reserves-RESERVE_PUB-history.c | 17+++++++++++++++++
1 file changed, 17 insertions(+), 0 deletions(-)

diff --git a/src/exchange/taler-exchange-httpd_get-reserves-RESERVE_PUB-history.c b/src/exchange/taler-exchange-httpd_get-reserves-RESERVE_PUB-history.c @@ -61,6 +61,8 @@ compile_reserve_history ( GNUNET_JSON_PACK ( GNUNET_JSON_pack_string ("type", "CREDIT"), + GNUNET_JSON_pack_uint64 ("history_offset", + pos->history_offset), GNUNET_JSON_pack_timestamp ("timestamp", bank->execution_date), TALER_JSON_pack_full_payto ("sender_account_url", @@ -135,6 +137,9 @@ compile_reserve_history ( GNUNET_JSON_pack_string ( "type", "WITHDRAW"), + GNUNET_JSON_pack_uint64 ( + "history_offset", + pos->history_offset), GNUNET_JSON_pack_data_auto ( "reserve_sig", &withdraw->reserve_sig), @@ -249,6 +254,8 @@ compile_reserve_history ( GNUNET_JSON_PACK ( GNUNET_JSON_pack_string ("type", "RECOUP"), + GNUNET_JSON_pack_uint64 ("history_offset", + pos->history_offset), GNUNET_JSON_pack_data_auto ("exchange_pub", &pub), GNUNET_JSON_pack_data_auto ("exchange_sig", @@ -295,6 +302,8 @@ compile_reserve_history ( GNUNET_JSON_PACK ( GNUNET_JSON_pack_string ("type", "CLOSING"), + GNUNET_JSON_pack_uint64 ("history_offset", + pos->history_offset), TALER_JSON_pack_full_payto ("receiver_account_details", closing->receiver_account_details), GNUNET_JSON_pack_data_auto ("wtid", @@ -327,6 +336,8 @@ compile_reserve_history ( GNUNET_JSON_PACK ( GNUNET_JSON_pack_string ("type", "MERGE"), + GNUNET_JSON_pack_uint64 ("history_offset", + pos->history_offset), GNUNET_JSON_pack_data_auto ("h_contract_terms", &merge->h_contract_terms), GNUNET_JSON_pack_data_auto ("merge_pub", @@ -367,6 +378,8 @@ compile_reserve_history ( GNUNET_JSON_PACK ( GNUNET_JSON_pack_string ("type", "HISTORY"), + GNUNET_JSON_pack_uint64 ("history_offset", + pos->history_offset), GNUNET_JSON_pack_data_auto ("reserve_sig", &history->reserve_sig), GNUNET_JSON_pack_timestamp ("request_timestamp", @@ -392,6 +405,8 @@ compile_reserve_history ( GNUNET_JSON_PACK ( GNUNET_JSON_pack_string ("type", "OPEN"), + GNUNET_JSON_pack_uint64 ("history_offset", + pos->history_offset), GNUNET_JSON_pack_uint64 ("requested_min_purses", orq->purse_limit), GNUNET_JSON_pack_data_auto ("reserve_sig", @@ -421,6 +436,8 @@ compile_reserve_history ( GNUNET_JSON_PACK ( GNUNET_JSON_pack_string ("type", "CLOSE"), + GNUNET_JSON_pack_uint64 ("history_offset", + pos->history_offset), GNUNET_JSON_pack_data_auto ("reserve_sig", &crq->reserve_sig), GNUNET_is_zero (&crq->target_account_h_payto)