exchange

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

commit 6ee78eae14a7d3f4e625f3598e4d8ce3fefadfa3
parent 14991a51c3e1b78b272117db8dc3013515efd116
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 28 Jun 2026 08:56:28 +0200

badness

Diffstat:
Msrc/exchangedb/insert_records_by_table.c | 17++++++++++-------
Msrc/exchangedb/lookup_records_by_table.c | 4++--
2 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/src/exchangedb/insert_records_by_table.c b/src/exchangedb/insert_records_by_table.c @@ -510,13 +510,16 @@ irbt_cb_table_kycauths_in (struct TALER_EXCHANGEDB_PostgresContext *pg, * @param td record to insert */ static enum GNUNET_DB_QueryStatus -irbt_cb_table_reserves_open_requests (struct TALER_EXCHANGEDB_PostgresContext * - pg, - const struct - TALER_EXCHANGEDB_TableData *td) +irbt_cb_table_reserves_open_requests ( + struct TALER_EXCHANGEDB_PostgresContext *pg, + const struct TALER_EXCHANGEDB_TableData *td) { struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_uint64 (&td->serial), + GNUNET_PQ_query_param_auto_from_type ( + &td->details.reserves_open_requests.reserve_pub), + GNUNET_PQ_query_param_timestamp ( + &td->details.reserves_open_requests.request_timestamp), GNUNET_PQ_query_param_timestamp ( &td->details.reserves_open_requests.expiration_date), GNUNET_PQ_query_param_auto_from_type ( @@ -1395,8 +1398,8 @@ irbt_cb_table_purse_decision (struct TALER_EXCHANGEDB_PostgresContext *pg, }; PREPARE (pg, - "insert_into_table_purse_refunds", - "INSERT INTO purse_refunds" + "insert_into_table_purse_decision", + "INSERT INTO purse_decision" "(purse_refunds_serial_id" ",purse_pub" ",action_timestamp" @@ -1926,7 +1929,7 @@ irbt_cb_table_kyc_attributes (struct TALER_EXCHANGEDB_PostgresContext *pg, GNUNET_PQ_query_param_uint64 ( &td->details.kyc_attributes.trigger_outcome_serial), GNUNET_PQ_query_param_fixed_size ( - &td->details.kyc_attributes.encrypted_attributes, + td->details.kyc_attributes.encrypted_attributes, td->details.kyc_attributes.encrypted_attributes_size), GNUNET_PQ_query_param_end }; diff --git a/src/exchangedb/lookup_records_by_table.c b/src/exchangedb/lookup_records_by_table.c @@ -1635,7 +1635,7 @@ lrbt_cb_table_purse_decision (void *cls, { struct GNUNET_PQ_ResultSpec rs[] = { GNUNET_PQ_result_spec_uint64 ( - "purse_refunds_serial_id", + "purse_decision_serial_id", &td.serial), GNUNET_PQ_result_spec_auto_from_type ( "purse_pub", @@ -3285,9 +3285,9 @@ TALER_EXCHANGEDB_lookup_records_by_table ( XPREPARE ("select_above_serial_by_table_purse_decision", "SELECT" " purse_decision_serial_id" + ",purse_pub" ",action_timestamp" ",refunded" - ",purse_pub" " FROM purse_decision" " WHERE purse_decision_serial_id > $1" " ORDER BY purse_decision_serial_id ASC;");