Handle the nothing touched case.

This commit is contained in:
Neil Booth 2016-11-04 20:08:17 +09:00
parent be0a5f246c
commit d25e66cb2e

View File

@ -232,7 +232,7 @@ class BlockProcessor(LoggedClass):
Blocks are only processed in the forward direction. The Blocks are only processed in the forward direction. The
prefetcher only provides a non-None mempool when caught up. prefetcher only provides a non-None mempool when caught up.
''' '''
all_touched = [] all_touched = [set()]
blocks, mempool = await self.prefetcher.get_blocks() blocks, mempool = await self.prefetcher.get_blocks()
for block in blocks: for block in blocks:
touched = self.advance_block(block) touched = self.advance_block(block)