path: root/src/auditordb
diff options
authorChristian Grothoff <>2016-10-09 00:57:31 +0200
committerChristian Grothoff <>2016-10-09 00:57:31 +0200
commit6621ec8fb74474a5ea342020bcebefd9030aced7 (patch)
tree8447cc9d2e9475a449442aa631920d6fbbc41be5 /src/auditordb
parent8bbcf86678b3abbc8c6b5ec63b5a94a2777d055a (diff)
expanding exchange DB API to meet auditor requirements (not implemented, just adding the function signatures)
Diffstat (limited to 'src/auditordb')
1 files changed, 4 insertions, 3 deletions
diff --git a/src/auditordb/plugin_auditordb_postgres.c b/src/auditordb/plugin_auditordb_postgres.c
index e392664b..57c26aa3 100644
--- a/src/auditordb/plugin_auditordb_postgres.c
+++ b/src/auditordb/plugin_auditordb_postgres.c
@@ -265,11 +265,11 @@ postgres_create_tables (void *cls)
/* Table indicating up to which transactions the auditor has
processed the exchange database. Used for SELECTing the
statements to process. We basically trace the exchange's
- operations by the 5 primary tables: reserves_in,
- reserves_out, deposits, refresh_sessions and refunds. The
+ operations by the 6 primary tables: reserves_in,
+ reserves_out, deposits, refresh_sessions, refunds and prewire. The
other tables of the exchange DB just provide supporting
evidence which is checked alongside the audit of these
- five tables. The 5 indices below include the last serial
+ five tables. The 6 indices below include the last serial
ID from the respective tables that we have processed. Thus,
we need to select those table entries that are strictly
larger (and process in monotonically increasing order). */
@@ -280,6 +280,7 @@ postgres_create_tables (void *cls)
",last_deposit_serial_id INT8 NOT NULL"
",last_melt_serial_id INT8 NOT NULL"
",last_refund_serial_id INT8 NOT NULL"
+ ",last_prewire_serial_id INT8 NOT NULL"
/* Table with all of the customer reserves and their respective