connector

This commit is contained in:
4tochka 2019-05-08 00:48:38 +04:00
parent 0436af10ad
commit dcba1cefee

View File

@ -369,10 +369,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"] % 100 == 0: # elif block["height"] % 1000 == 0:
self.utxo.destroy_utxo(block["height"]) # self.utxo.destroy_utxo(block["height"])
pass
self.blocks_processed_count += 1 self.blocks_processed_count += 1