From f22357df94aba433b90f3fa4ac222edfe233d47d Mon Sep 17 00:00:00 2001 From: kanoi Date: Wed, 10 Sep 2014 17:14:21 +1000 Subject: [PATCH] sql - reverse incorrect logic from no starting block --- sql/bs.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/bs.sql b/sql/bs.sql index 9c948f20..5c701067 100644 --- a/sql/bs.sql +++ b/sql/bs.sql @@ -20,7 +20,7 @@ BEGIN END IF; select max(height) from blocks where height < hi into hi0; - IF found THEN + IF NOT found THEN wi0 := -1; ELSE select workinfoid from blocks where height = hi0