Skip to content

Commit

Permalink
hotfix CountBlocks
Browse files Browse the repository at this point in the history
  • Loading branch information
altergui committed Sep 9, 2024
1 parent 34e816b commit f8f624f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vochain/indexer/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ func (idx *Indexer) BlockList(limit, offset int, chainID, hash, proposerAddress
// CountBlocks returns how many blocks are indexed.
func (idx *Indexer) CountBlocks() (uint64, error) {
results, err := idx.readOnlyQuery.SearchBlocks(context.TODO(), indexerdb.SearchBlocksParams{
Limit: 1,
ChainID: "",
HashSubstr: "",
ProposerAddress: "",
Offset: 0,
Limit: 1,
})
if err != nil {
return 0, err
Expand Down

0 comments on commit f8f624f

Please sign in to comment.