connector

This commit is contained in:
4tochka 2019-05-07 02:02:34 +04:00
parent 49f8ec9ec8
commit d43c3cce20

View File

@ -710,7 +710,7 @@ class Connector:
except: except:
pass pass
processed_height = self.last_block_height processed_height = self.last_block_height
if next(iter(self.block_preload._store)) < processed_height + 1: if self.block_preload._store and next(iter(self.block_preload._store)) < processed_height + 1:
for i in range(next(iter(self.block_preload._store)), self.last_block_height+1): for i in range(next(iter(self.block_preload._store)), self.last_block_height+1):
try: try:
self.block_preload.remove(i) self.block_preload.remove(i)