connector

This commit is contained in:
4tochka 2019-05-13 22:00:30 +04:00
parent 857ee805b1
commit 04597b66c8

View File

@ -377,12 +377,12 @@ class Connector:
if len(self.utxo.cached) > self.utxo.size_limit and \
not self.utxo.save_process and \
self.utxo.checkpoints:
n = list()
for i in self.utxo.checkpoints:
if i >= block["height"]:
n.append(i)
self.utxo.checkpoints = n
if n and n[0] < block["height"]:
# n = list()
# for i in self.utxo.checkpoints:
# if i >= block["height"]:
# n.append(i)
# self.utxo.checkpoints = n
if self.utxo.checkpoints[0] < block["height"]:
self.utxo.deleted_last_block = block["height"]
self.utxo.pending_deleted = self.utxo.pending_deleted.union(self.utxo.deleted)
self.utxo.deleted = set()