Its currently unefficient to get from a blockstore a chain of blocks. You need
to backtrace from the head, asking the blockstore for each hash indepedently.
And because of the independent calls, each time blockstore scans for the block
asked for.
Usecase: Block Explorer
Solution could perhaps be a BlockStore.getRecentBlocks(int maxNumber). If you
set maxNumber high enough, you'll just get all blocks the store has to offer
(that are in the best chain).
Original issue reported on code.google.com by andreas....@gmail.com on 23 Mar 2013 at 9:06
Original issue reported on code.google.com by
andreas....@gmail.com
on 23 Mar 2013 at 9:06