exchange

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

commit ab36fb1f5795be052fd8d986a6a3075934459e93
parent ee2be6682ab2a0c62ffa6e36b2aca40180e4d61b
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 17 Mar 2026 14:30:26 +0100

fix taler-auditor-sync

Diffstat:
Msrc/exchangedb/pg_insert_records_by_table.c | 6+++++-
Msrc/exchangedb/pg_lookup_records_by_table.c | 4++++
Msrc/include/taler/taler_exchangedb_plugin.h | 1+
3 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/exchangedb/pg_insert_records_by_table.c b/src/exchangedb/pg_insert_records_by_table.c @@ -938,6 +938,9 @@ irbt_cb_table_batch_deposits (struct PostgresClosure *pg, TALER_PQ_query_param_amount ( pg->conn, &td->details.batch_deposits.total_amount), + TALER_PQ_query_param_amount ( + pg->conn, + &td->details.batch_deposits.total_without_fee), GNUNET_PQ_query_param_auto_from_type ( &td->details.batch_deposits.merchant_sig), GNUNET_PQ_query_param_bool (td->details.batch_deposits.done), @@ -961,11 +964,12 @@ irbt_cb_table_batch_deposits (struct PostgresClosure *pg, ",policy_details_serial_id" ",policy_blocked" ",total_amount" + ",total_without_fee" ",merchant_sig" ",done" ") VALUES " "($1, $2, $3, $4, $5, $6, $7, $8, $9, $10," - " $11, $12, $13, $14, $15, $16);"); + " $11, $12, $13, $14, $15, $16, $17);"); return GNUNET_PQ_eval_prepared_non_select (pg->conn, "insert_into_table_batch_deposits", params); diff --git a/src/exchangedb/pg_lookup_records_by_table.c b/src/exchangedb/pg_lookup_records_by_table.c @@ -1061,6 +1061,9 @@ lrbt_cb_table_batch_deposits (void *cls, TALER_PQ_RESULT_SPEC_AMOUNT ( "total_amount", &td.details.batch_deposits.total_amount), + TALER_PQ_RESULT_SPEC_AMOUNT ( + "total_without_fee", + &td.details.batch_deposits.total_without_fee), GNUNET_PQ_result_spec_auto_from_type ( "merchant_sig", &td.details.batch_deposits.merchant_sig), @@ -3316,6 +3319,7 @@ TEH_PG_lookup_records_by_table (void *cls, ",policy_details_serial_id" ",policy_blocked" ",total_amount" + ",total_without_fee" ",merchant_sig" ",done" " FROM batch_deposits" diff --git a/src/include/taler/taler_exchangedb_plugin.h b/src/include/taler/taler_exchangedb_plugin.h @@ -589,6 +589,7 @@ struct TALER_EXCHANGEDB_TableData uint64_t policy_details_serial_id; bool policy_blocked; struct TALER_Amount total_amount; + struct TALER_Amount total_without_fee; struct TALER_MerchantSignatureP merchant_sig; bool done; } batch_deposits;