connector
This commit is contained in:
parent
d71ba62364
commit
3c1994aba6
@ -377,11 +377,11 @@ class Connector:
|
|||||||
|
|
||||||
self.block_headers_cache.set(block["hash"], block["height"])
|
self.block_headers_cache.set(block["hash"], block["height"])
|
||||||
self.last_block_height = block["height"]
|
self.last_block_height = block["height"]
|
||||||
if self.utxo_data:
|
# if self.utxo_data:
|
||||||
if not self.deep_synchronization:
|
# if not self.deep_synchronization:
|
||||||
self.utxo.destroy_utxo(block["height"])
|
# self.utxo.destroy_utxo(block["height"])
|
||||||
elif block["height"] % 200 == 0:
|
# elif block["height"] % 100 == 0:
|
||||||
self.utxo.destroy_utxo(block["height"])
|
# self.utxo.destroy_utxo(block["height"])
|
||||||
|
|
||||||
self.blocks_processed_count += 1
|
self.blocks_processed_count += 1
|
||||||
|
|
||||||
|
|||||||
@ -133,12 +133,10 @@ class UTXO():
|
|||||||
self._requests += 1
|
self._requests += 1
|
||||||
try:
|
try:
|
||||||
i = self.cached[key]
|
i = self.cached[key]
|
||||||
# del self.cached[key]
|
# try:
|
||||||
# self.destroyed_utxo += 1
|
# self.destroyed[block_height].add(key)
|
||||||
try:
|
# except:
|
||||||
self.destroyed[block_height].add(key)
|
# self.destroyed[block_height] = {key}
|
||||||
except:
|
|
||||||
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