connector

This commit is contained in:
4tochka 2019-05-06 02:54:42 +04:00
parent fb3bfcd25c
commit 8353d98064

View File

@ -748,7 +748,7 @@ class UTXO():
def __init__(self, db_pool, loop, log, cache_size):
self.cached = pylru.lrucache(cache_size)
self.missed = set()
self.destroyed = OrderedDict()
self.destroyed = pylru.lrucache(200000)
self.deleted = OrderedDict()
self.log = log
self.loaded = OrderedDict()
@ -783,7 +783,6 @@ class UTXO():
del self.cached[outpoint]
def destroy_utxo(self, block_height):
return
block_height -= self.maturity
for key in range(self.destroyed_utxo_block + 1, block_height + 1):
if key not in self.destroyed: continue