Skip to content

Commit

Permalink
Merge branch 'feat/index-blocks' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
altergui committed Aug 20, 2024
2 parents ab6de3c + 6df46bc commit bef3846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vochain/indexer/queries/blocks.sql
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ WHERE (
OR (LENGTH(sqlc.arg(hash_substr)) < 64 AND INSTR(LOWER(HEX(hash)), LOWER(sqlc.arg(hash_substr))) > 0)
-- TODO: consider keeping an hash_hex column for faster searches
)
AND (sqlc.arg(proposer_address) = 0 OR LOWER(HEX(proposer_address)) = LOWER(sqlc.arg(proposer_address)))
AND (sqlc.arg(proposer_address) = '' OR LOWER(HEX(proposer_address)) = LOWER(sqlc.arg(proposer_address)))
)
ORDER BY height DESC
LIMIT sqlc.arg(limit)
Expand Down

0 comments on commit bef3846

Please sign in to comment.