connector
This commit is contained in:
parent
8ad98c5dbc
commit
ee8915281e
@ -2,7 +2,6 @@ from pybtc import int_to_c_int, c_int_to_int, c_int_len
|
|||||||
import asyncio
|
import asyncio
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
from lru import LRU
|
from lru import LRU
|
||||||
# from pylru import lrucache as LRU
|
|
||||||
|
|
||||||
|
|
||||||
class UTXO():
|
class UTXO():
|
||||||
@ -131,16 +130,16 @@ class UTXO():
|
|||||||
self.save_process = False
|
self.save_process = False
|
||||||
|
|
||||||
def get(self, key, block_height):
|
def get(self, key, block_height):
|
||||||
# self._requests += 1
|
self._requests += 1
|
||||||
try:
|
try:
|
||||||
i = self.cached[key]
|
i = self.cached[key]
|
||||||
# del self.cached[key]
|
# del self.cached[key]
|
||||||
# self.destroyed_utxo += 1
|
# self.destroyed_utxo += 1
|
||||||
# try:
|
try:
|
||||||
# self.destroyed[block_height].add(key)
|
self.destroyed[block_height].add(key)
|
||||||
# except:
|
except:
|
||||||
# self.destroyed[block_height] = {key}
|
self.destroyed[block_height] = {key}
|
||||||
# self._hit += 1
|
self._hit += 1
|
||||||
return i
|
return i
|
||||||
except:
|
except:
|
||||||
self._failed_requests += 1
|
self._failed_requests += 1
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user