Coming from #23549#pullrequestreview-1105712566
The current scanblocks
flow walks-through every block in the active chain
until hits the chain tip or processes 10k blocks, then calls lookupFilterRange
function to obtain all filters from that particular range.
This is only done to obtain the heights range to look up the block filters. Which is unneeded.
As scanblocks
only lookup block filters in the active chain, we can
directly calculate the lookup range heights, by using the chain tip,
without requiring to traverse the chain block by block.