From 0e52c47de7904a9f41057d5a1dcdf183fe57d1df Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Fri, 10 Apr 2015 14:48:32 +0200 Subject: mintdb postgres: fix session hash length --- src/mintdb/plugin_mintdb_postgres.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mintdb/plugin_mintdb_postgres.c') diff --git a/src/mintdb/plugin_mintdb_postgres.c b/src/mintdb/plugin_mintdb_postgres.c index 6fc3b441..7e6b2d94 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" -- cgit v1.2.3