connector
This commit is contained in:
parent
0105a3681c
commit
7dece0b608
@ -43,7 +43,6 @@ class UTXO():
|
|||||||
del self.cached[outpoint]
|
del self.cached[outpoint]
|
||||||
|
|
||||||
def destroy_utxo(self, block_height):
|
def destroy_utxo(self, block_height):
|
||||||
return
|
|
||||||
block_height -= self.maturity
|
block_height -= self.maturity
|
||||||
for key in range(self.destroyed_utxo_block + 1, block_height + 1):
|
for key in range(self.destroyed_utxo_block + 1, block_height + 1):
|
||||||
if key not in self.destroyed: continue
|
if key not in self.destroyed: continue
|
||||||
@ -134,12 +133,12 @@ class UTXO():
|
|||||||
self._requests += 1
|
self._requests += 1
|
||||||
try:
|
try:
|
||||||
i = self.cached.get(key)
|
i = self.cached.get(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:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user