Browse Source

sql - reverse incorrect logic from no starting block

master
kanoi 10 years ago
parent
commit
f22357df94
  1. 2
      sql/bs.sql

2
sql/bs.sql

@ -20,7 +20,7 @@ BEGIN
END IF; END IF;
select max(height) from blocks where height < hi into hi0; select max(height) from blocks where height < hi into hi0;
IF found THEN IF NOT found THEN
wi0 := -1; wi0 := -1;
ELSE ELSE
select workinfoid from blocks where height = hi0 select workinfoid from blocks where height = hi0

Loading…
Cancel
Save