summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-03-20 13:52:29 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-03-20 13:52:29 +0530
commitc17f05b5fdddfc3a26285777b437120dbfe0bb1e (patch)
treec48120aeba56429f196be966057a4da10f7472f3 /src
parent10c56bcea05df9ac5a7036850039900fbe435e00 (diff)
downloadexchange-c17f05b5fdddfc3a26285777b437120dbfe0bb1e.tar.gz
exchange-c17f05b5fdddfc3a26285777b437120dbfe0bb1e.tar.bz2
exchange-c17f05b5fdddfc3a26285777b437120dbfe0bb1e.zip
fix critical bug in transaction history query for recoup-refresh
Diffstat (limited to 'src')
-rw-r--r--src/exchangedb/plugin_exchangedb_postgres.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c
index 5f1668ef..b3139a86 100644
--- a/src/exchangedb/plugin_exchangedb_postgres.c
+++ b/src/exchangedb/plugin_exchangedb_postgres.c
@@ -1160,7 +1160,7 @@ postgres_get_session (void *cls)
") VALUES "
"($1, $2, $3, $4, $5, $6, $7);",
7),
- /* Used in #postgres_insert_recoup_request() to store recoup-refresh
+ /* Used in #postgres_insert_recoup_refresh_request() to store recoup-refresh
information */
GNUNET_PQ_make_prepare ("recoup_refresh_insert",
"INSERT INTO recoup_refresh "
@@ -1349,7 +1349,7 @@ postgres_get_session (void *cls)
",recoup_refresh_uuid"
" FROM recoup_refresh"
" JOIN refresh_revealed_coins rrc"
- " ON (rrc.coin_ev = h_blind_ev)"
+ " ON (rrc.h_coin_ev = h_blind_ev)"
" JOIN refresh_commitments rc"
" ON (rrc.rc = rc.rc)"
" JOIN known_coins coins"