aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-05-20 15:52:40 +0200
committerChristian Grothoff <christian@grothoff.org>2016-05-20 15:52:40 +0200
commite39beff2722683cfb7a2c70f2269795a074ee778 (patch)
treeb287c6873b87caeeca01b61b4a16a801cc54be45 /src/exchangedb
parent35509528bc10546f11934ab3e965e9de16a6910f (diff)
fix init before use in new refund logic
Diffstat (limited to 'src/exchangedb')
-rw-r--r--src/exchangedb/plugin_exchangedb_postgres.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c
index 4814468be..f53b23104 100644
--- a/src/exchangedb/plugin_exchangedb_postgres.c
+++ b/src/exchangedb/plugin_exchangedb_postgres.c
@@ -983,7 +983,8 @@ postgres_prepare (PGconn *db_conn)
" WHERE"
" tiny=false AND"
" done=false AND"
- " wire_deadline<$1"
+ " wire_deadline<=$1 AND"
+ " refund_deadline<$1"
" ORDER BY wire_deadline ASC"
" LIMIT 1",
1, NULL);