summaryrefslogtreecommitdiff
path: root/src/auditordb/pg_get_wire_auditor_progress.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-09-14 17:37:53 +0200
committerChristian Grothoff <christian@grothoff.org>2023-09-14 17:37:53 +0200
commit6e5092d83473dc1b0200d82744cf0f0056b0c110 (patch)
tree3a402d87e500fd4e85efb2ec19dfae6d942d9265 /src/auditordb/pg_get_wire_auditor_progress.c
parent1d088120a5c378ec5fe2d9cfd86353f9b75220c4 (diff)
downloadexchange-6e5092d83473dc1b0200d82744cf0f0056b0c110.tar.gz
exchange-6e5092d83473dc1b0200d82744cf0f0056b0c110.tar.bz2
exchange-6e5092d83473dc1b0200d82744cf0f0056b0c110.zip
more work towards auditor support for AML/KYC
Diffstat (limited to 'src/auditordb/pg_get_wire_auditor_progress.c')
-rw-r--r--src/auditordb/pg_get_wire_auditor_progress.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/auditordb/pg_get_wire_auditor_progress.c b/src/auditordb/pg_get_wire_auditor_progress.c
index c5caf3f01..a0eaefc65 100644
--- a/src/auditordb/pg_get_wire_auditor_progress.c
+++ b/src/auditordb/pg_get_wire_auditor_progress.c
@@ -1,6 +1,6 @@
/*
This file is part of TALER
- Copyright (C) 2022 Taler Systems SA
+ Copyright (C) 2022-2023 Taler Systems SA
TALER is free software; you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
@@ -38,18 +38,21 @@ TAH_PG_get_wire_auditor_progress (
GNUNET_PQ_query_param_end
};
struct GNUNET_PQ_ResultSpec rs[] = {
- GNUNET_PQ_result_spec_timestamp ("last_timestamp",
- &pp->last_timestamp),
GNUNET_PQ_result_spec_uint64 ("last_reserve_close_uuid",
&pp->last_reserve_close_uuid),
+ GNUNET_PQ_result_spec_uint64 ("last_batch_deposit_uuid",
+ &pp->last_batch_deposit_uuid),
+ GNUNET_PQ_result_spec_uint64 ("last_aggregation_serial",
+ &pp->last_aggregation_serial),
GNUNET_PQ_result_spec_end
};
PREPARE (pg,
"wire_auditor_progress_select",
"SELECT"
- " last_timestamp"
- ",last_reserve_close_uuid"
+ " last_reserve_close_uuid"
+ ",last_batch_deposit_uuid"
+ ",last_aggregation_serial"
" FROM wire_auditor_progress"
" WHERE master_pub=$1;");
return GNUNET_PQ_eval_prepared_singleton_select (pg->conn,