connector

This commit is contained in:
4tochka 2019-05-07 20:58:17 +04:00
parent 7dece0b608
commit a196be295b

View File

@ -49,7 +49,7 @@ class UTXO():
n = set() n = set()
for outpoint in self.destroyed[key]: for outpoint in self.destroyed[key]:
try: try:
self.cached.pop(outpoint) del self.cached[outpoint]
self.destroyed_utxo += 1 self.destroyed_utxo += 1
except: except:
try: try:
@ -60,7 +60,7 @@ class UTXO():
self.destroyed_utxo += 1 self.destroyed_utxo += 1
pass pass
self.deleted[key] = n self.deleted[key] = n
self.destroyed.pop(key) del self.destroyed[key]
self.destroyed_utxo_block = block_height self.destroyed_utxo_block = block_height
if len(self.cached) - self._cache_size > 0 and not self.save_process: if len(self.cached) - self._cache_size > 0 and not self.save_process: