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.last_block_height = block["height"]
|
||||
if self.utxo_data:
|
||||
if not self.deep_synchronization:
|
||||
self.utxo.destroy_utxo(block["height"])
|
||||
elif block["height"] % 200 == 0:
|
||||
self.utxo.destroy_utxo(block["height"])
|
||||
# if self.utxo_data:
|
||||
# if not self.deep_synchronization:
|
||||
# self.utxo.destroy_utxo(block["height"])
|
||||
# elif block["height"] % 100 == 0:
|
||||
# self.utxo.destroy_utxo(block["height"])
|
||||
|
||||
self.blocks_processed_count += 1
|
||||
|
||||
|
||||
@ -133,12 +133,10 @@ class UTXO():
|
||||
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}
|
||||
# try:
|
||||
# self.destroyed[block_height].add(key)
|
||||
# except:
|
||||
# self.destroyed[block_height] = {key}
|
||||
self._hit += 1
|
||||
return i
|
||||
except:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user