Skip to content

Commit

Permalink
fixup! indexer: new method SearchBlocks
Browse files Browse the repository at this point in the history
  • Loading branch information
altergui committed Aug 20, 2024
1 parent 926727f commit d35967c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vochain/indexer/db/blocks.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 d35967c

Please sign in to comment.