connector
This commit is contained in:
parent
5b13299415
commit
00618b8144
@ -706,9 +706,18 @@ class Connector:
|
|||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
if processed_height < self.last_block_height:
|
if processed_height < self.last_block_height:
|
||||||
for i in range(processed_height, self.last_block_height - 1):
|
for i in range(processed_height, self.last_block_height ):
|
||||||
self.block_preload.remove(i)
|
try:
|
||||||
processed_height = self.last_block_height - 1
|
self.block_preload.remove(i)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
processed_height = self.last_block_height
|
||||||
|
if next(iter(self.block_preload._store)) < processed_height + 1:
|
||||||
|
for i in range(next(iter(self.block_preload._store)), self.last_block_height+1):
|
||||||
|
try:
|
||||||
|
self.block_preload.remove(i)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
if self.block_preload._store_size < self.block_preload_cache_limit * 0.9:
|
if self.block_preload._store_size < self.block_preload_cache_limit * 0.9:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user