connector
This commit is contained in:
parent
857ee805b1
commit
04597b66c8
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user