connector

This commit is contained in:
4tochka 2019-05-13 19:16:37 +04:00
parent 25dd92274f
commit 845f8987dd
2 changed files with 2 additions and 2 deletions

View File

@ -177,7 +177,7 @@ class BlockLoader:
self.last_batch_size = len(msg)
for i in blocks:
self.parent.block_preload.set(i, blocks[i])
if blocks:
if blocks and index == len(self.worker_busy) - 1:
self.parent.utxo.checkpoints.append(i)

View File

@ -49,7 +49,7 @@ class UTXO():
self.save_process = True
try:
# self.log.critical("cached " + str(len(self.cached)) )
self.checkpoints = sorted(self.checkpoints)
# self.checkpoints = sorted(self.checkpoints)
checkpoint = self.checkpoints.pop(0)
lb = 0
block_changed = False