diff --git a/vochain/indexer/db/blocks.sql.go b/vochain/indexer/db/blocks.sql.go index f9cb75888..dfb269c6d 100644 --- a/vochain/indexer/db/blocks.sql.go +++ b/vochain/indexer/db/blocks.sql.go @@ -91,7 +91,7 @@ WHERE ( OR (LENGTH(?2) < 64 AND INSTR(LOWER(HEX(hash)), LOWER(?2)) > 0) -- TODO: consider keeping an hash_hex column for faster searches ) - AND (?3 = 0 OR LOWER(HEX(proposer_address)) = LOWER(?3)) + AND (?3 = '' OR LOWER(HEX(proposer_address)) = LOWER(?3)) ) ORDER BY height DESC LIMIT ?5