connector
This commit is contained in:
parent
f4cb0c71de
commit
ba45615cfc
@ -77,9 +77,14 @@ class UTXO():
|
|||||||
block_changed = True
|
block_changed = True
|
||||||
lb = i[1][0] >> 39
|
lb = i[1][0] >> 39
|
||||||
if lb - 1 == checkpoint:
|
if lb - 1 == checkpoint:
|
||||||
if len(self.cached) > int(self.size_limit):
|
if len(self.pending_utxo) < int(self.size_limit * 0.9):
|
||||||
if self.checkpoints:
|
if len(self.cached) > int(self.size_limit * 0.9):
|
||||||
checkpoint = self.checkpoints.pop(0)
|
if self.checkpoints:
|
||||||
|
checkpoint = self.checkpoints.pop(0)
|
||||||
|
else:
|
||||||
|
if len(self.cached) > int(self.size_limit):
|
||||||
|
if self.checkpoints:
|
||||||
|
checkpoint = self.checkpoints.pop(0)
|
||||||
else:
|
else:
|
||||||
checkpoint_found = True
|
checkpoint_found = True
|
||||||
while self.checkpoints and checkpoint < lb - 1:
|
while self.checkpoints and checkpoint < lb - 1:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user