Handle the nothing touched case.
This commit is contained in:
parent
be0a5f246c
commit
d25e66cb2e
@ -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)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user