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 diff --git a/vochain/indexer/migrations/0018_dummy.sql b/vochain/indexer/migrations/0018_dummy.sql new file mode 100644 index 000000000..358e65d31 --- /dev/null +++ b/vochain/indexer/migrations/0018_dummy.sql @@ -0,0 +1,5 @@ +-- +goose Up +-- intentionally does nothing + +-- This is a no-op command in SQLite, used just to have a valid SQL statement. +SELECT 1;