From f8f624f8e7bc042e460f1aace8db85193f124737 Mon Sep 17 00:00:00 2001 From: Gui Iribarren Date: Mon, 9 Sep 2024 18:05:51 +0200 Subject: [PATCH] hotfix CountBlocks --- vochain/indexer/block.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vochain/indexer/block.go b/vochain/indexer/block.go index 59cdc4d54..9987e9543 100644 --- a/vochain/indexer/block.go +++ b/vochain/indexer/block.go @@ -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