exchange

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

commit 911655b6718a2ba72faaa408d5a764eed36cc9f5
parent 24adb75e170ef29d47ed3d58ef56ec888ff4d549
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri,  9 Oct 2026 22:15:43 +0200

preserve wad serials

Diffstat:
Msrc/exchangedb/insert_records_by_table.c | 2++
Msrc/exchangedb/iterate_records_by_table.c | 8++++++++
2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/exchangedb/insert_records_by_table.c b/src/exchangedb/insert_records_by_table.c @@ -1834,6 +1834,8 @@ irbt_cb_table_wads_in_entries (struct TALER_EXCHANGEDB_PostgresContext *pg, { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_uint64 (&td->serial), + GNUNET_PQ_query_param_uint64 ( + &td->details.wads_in_entries.wad_in_serial_id), GNUNET_PQ_query_param_auto_from_type ( &td->details.wads_in_entries.reserve_pub), GNUNET_PQ_query_param_auto_from_type ( diff --git a/src/exchangedb/iterate_records_by_table.c b/src/exchangedb/iterate_records_by_table.c @@ -2098,6 +2098,9 @@ lrbt_cb_table_wads_out_entries (void *cls, GNUNET_PQ_result_spec_uint64 ( "wad_out_entry_serial_id", &td.serial), + GNUNET_PQ_result_spec_uint64 ( + "wad_out_serial_id", + &td.details.wads_out_entries.wad_out_serial_id), GNUNET_PQ_result_spec_auto_from_type ( "reserve_pub", &td.details.wads_out_entries.reserve_pub), @@ -2226,6 +2229,9 @@ lrbt_cb_table_wads_in_entries (void *cls, GNUNET_PQ_result_spec_uint64 ( "wad_in_entry_serial_id", &td.serial), + GNUNET_PQ_result_spec_uint64 ( + "wad_in_serial_id", + &td.details.wads_in_entries.wad_in_serial_id), GNUNET_PQ_result_spec_auto_from_type ( "reserve_pub", &td.details.wads_in_entries.reserve_pub), @@ -3490,6 +3496,7 @@ TALER_EXCHANGEDB_iterate_records_by_table ( XPREPARE ("select_above_serial_by_table_wads_out_entries", "SELECT" " wad_out_entry_serial_id" + ",wad_out_serial_id" ",reserve_pub" ",purse_pub" ",h_contract" @@ -3522,6 +3529,7 @@ TALER_EXCHANGEDB_iterate_records_by_table ( XPREPARE ("select_above_serial_by_table_wads_in_entries", "SELECT" " wad_in_entry_serial_id" + ",wad_in_serial_id" ",reserve_pub" ",purse_pub" ",h_contract"