connector
This commit is contained in:
parent
0b56662e55
commit
f7330cce85
@ -781,13 +781,12 @@ class UTXO():
|
|||||||
|
|
||||||
def destroy_utxo(self, block_height):
|
def destroy_utxo(self, block_height):
|
||||||
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
|
||||||
n = set()
|
n = set()
|
||||||
for outpoint in self.destroyed[key]:
|
for outpoint in self.destroyed[key]:
|
||||||
try:
|
try:
|
||||||
del self.cached[outpoint]
|
self.cached.popitem(outpoint)
|
||||||
self.destroyed_utxo += 1
|
self.destroyed_utxo += 1
|
||||||
except:
|
except:
|
||||||
try:
|
try:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user