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 \
|
if len(self.utxo.cached) > self.utxo.size_limit and \
|
||||||
not self.utxo.save_process and \
|
not self.utxo.save_process and \
|
||||||
self.utxo.checkpoints:
|
self.utxo.checkpoints:
|
||||||
n = list()
|
# n = list()
|
||||||
for i in self.utxo.checkpoints:
|
# for i in self.utxo.checkpoints:
|
||||||
if i >= block["height"]:
|
# if i >= block["height"]:
|
||||||
n.append(i)
|
# n.append(i)
|
||||||
self.utxo.checkpoints = n
|
# self.utxo.checkpoints = n
|
||||||
if n and n[0] < block["height"]:
|
if self.utxo.checkpoints[0] < block["height"]:
|
||||||
self.utxo.deleted_last_block = block["height"]
|
self.utxo.deleted_last_block = block["height"]
|
||||||
self.utxo.pending_deleted = self.utxo.pending_deleted.union(self.utxo.deleted)
|
self.utxo.pending_deleted = self.utxo.pending_deleted.union(self.utxo.deleted)
|
||||||
self.utxo.deleted = set()
|
self.utxo.deleted = set()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user