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
|
||||
from collections import OrderedDict
|
||||
from lru import LRU
|
||||
# from pylru import lrucache as LRU
|
||||
|
||||
|
||||
class UTXO():
|
||||
@ -131,16 +130,16 @@ class UTXO():
|
||||
self.save_process = False
|
||||
|
||||
def get(self, key, block_height):
|
||||
# self._requests += 1
|
||||
self._requests += 1
|
||||
try:
|
||||
i = self.cached[key]
|
||||
# del self.cached[key]
|
||||
# self.destroyed_utxo += 1
|
||||
# try:
|
||||
# self.destroyed[block_height].add(key)
|
||||
# except:
|
||||
# self.destroyed[block_height] = {key}
|
||||
# self._hit += 1
|
||||
try:
|
||||
self.destroyed[block_height].add(key)
|
||||
except:
|
||||
self.destroyed[block_height] = {key}
|
||||
self._hit += 1
|
||||
return i
|
||||
except:
|
||||
self._failed_requests += 1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user