summaryrefslogtreecommitdiff
path: root/src/exchangedb
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-03-15 19:28:05 +0100
committerChristian Grothoff <christian@grothoff.org>2017-03-15 19:28:05 +0100
commit6b5bfc57b59cd98cdbec74eabd61ee177659328f (patch)
treef8d56540b2408d57080f47a0be01c535b815dfa5 /src/exchangedb
parent36195e85ea55eb95152f0b9b10210e9d1b35903a (diff)
downloadexchange-6b5bfc57b59cd98cdbec74eabd61ee177659328f.tar.gz
exchange-6b5bfc57b59cd98cdbec74eabd61ee177659328f.tar.bz2
exchange-6b5bfc57b59cd98cdbec74eabd61ee177659328f.zip
more work on auditor, towards coin/denomination key checks
Diffstat (limited to 'src/exchangedb')
-rw-r--r--src/exchangedb/plugin_exchangedb_postgres.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c
index e14e4aa62..26d6b87ad 100644
--- a/src/exchangedb/plugin_exchangedb_postgres.c
+++ b/src/exchangedb/plugin_exchangedb_postgres.c
@@ -794,6 +794,7 @@ postgres_prepare (PGconn *db_conn)
",num_newcoins"
",noreveal_index"
",melt_serial_id"
+ ",session_hash"
" FROM refresh_sessions"
" WHERE melt_serial_id>=$1"
" ORDER BY melt_serial_id ASC",
@@ -4832,6 +4833,7 @@ postgres_select_refreshs_above_serial_id (void *cls,
uint16_t num_newcoins;
uint16_t noreveal_index;
uint64_t rowid;
+ struct GNUNET_HashCode session_hash;
struct GNUNET_PQ_ResultSpec rs[] = {
GNUNET_PQ_result_spec_auto_from_type ("old_coin_pub",
@@ -4846,6 +4848,8 @@ postgres_select_refreshs_above_serial_id (void *cls,
&noreveal_index),
GNUNET_PQ_result_spec_uint64 ("melt_serial_id",
&rowid),
+ GNUNET_PQ_result_spec_auto_from_type ("session_hash",
+ &session_hash),
GNUNET_PQ_result_spec_end
};
if (GNUNET_OK !=
@@ -4863,7 +4867,8 @@ postgres_select_refreshs_above_serial_id (void *cls,
&coin_sig,
&amount_with_fee,
num_newcoins,
- noreveal_index);
+ noreveal_index,
+ &session_hash);
GNUNET_PQ_cleanup_result (rs);
}
PQclear (result);