summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSree Harsha Totakura <sreeharsha@totakura.in>2015-04-10 14:48:32 +0200
committerSree Harsha Totakura <sreeharsha@totakura.in>2015-04-12 10:08:21 +0200
commit0e52c47de7904a9f41057d5a1dcdf183fe57d1df (patch)
tree1870ee9f154512131c513404752131a275b504a1 /src
parent23445db811b4a4a281f0456f3a4e0411d2109d95 (diff)
downloadexchange-0e52c47de7904a9f41057d5a1dcdf183fe57d1df.tar.gz
exchange-0e52c47de7904a9f41057d5a1dcdf183fe57d1df.tar.bz2
exchange-0e52c47de7904a9f41057d5a1dcdf183fe57d1df.zip
mintdb postgres: fix session hash length
Diffstat (limited to 'src')
-rw-r--r--src/mintdb/plugin_mintdb_postgres.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mintdb/plugin_mintdb_postgres.c b/src/mintdb/plugin_mintdb_postgres.c
index 6fc3b4410..7e6b2d947 100644
--- a/src/mintdb/plugin_mintdb_postgres.c
+++ b/src/mintdb/plugin_mintdb_postgres.c
@@ -232,7 +232,7 @@ postgres_create_tables (void *cls,
*/
SQLEXEC("CREATE TABLE IF NOT EXISTS refresh_sessions "
"("
- " session_hash BYTEA PRIMARY KEY CHECK (length(session_hash) = 32)"
+ " session_hash BYTEA PRIMARY KEY CHECK (length(session_hash) = 64)"
",num_oldcoins INT2 NOT NULL"
",num_newcoins INT2 NOT NULL"
",noreveal_index INT2 NOT NULL"