connector

This commit is contained in:
4tochka 2019-05-13 18:52:29 +04:00
parent ad33a60dc6
commit 25dd92274f

View File

@ -61,7 +61,7 @@ class UTXO():
block_changed = True
lb = i[1][0] >> 42
if lb - 1 == checkpoint:
if len(self.cached) > self.size_limit:
if len(self.cached) > int(self.size_limit * 0.9):
if self.checkpoints:
checkpoint = self.checkpoints.pop(0)
else: