From 60b114fbcfc65a86472a5c727401d2d67c76c42b Mon Sep 17 00:00:00 2001 From: 4tochka Date: Wed, 8 May 2019 12:04:23 +0400 Subject: [PATCH] connector --- build/lib.macosx-10.9-x86_64-3.7/pybtc/connector.py | 10 +++++----- pybtc/connector/utxo.py | 9 +++++---- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/build/lib.macosx-10.9-x86_64-3.7/pybtc/connector.py b/build/lib.macosx-10.9-x86_64-3.7/pybtc/connector.py index 9ff4f36..59109e9 100644 --- a/build/lib.macosx-10.9-x86_64-3.7/pybtc/connector.py +++ b/build/lib.macosx-10.9-x86_64-3.7/pybtc/connector.py @@ -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"] % 500 == 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"] % 500 == 0: + # self.utxo.destroy_utxo(block["height"]) self.blocks_processed_count += 1 diff --git a/pybtc/connector/utxo.py b/pybtc/connector/utxo.py index 6850c36..d43212f 100644 --- a/pybtc/connector/utxo.py +++ b/pybtc/connector/utxo.py @@ -133,10 +133,11 @@ class UTXO(): self._requests += 1 try: i = self.cached[key] - try: - self.destroyed[block_height].add(key) - except: - self.destroyed[block_height] = {key} + self.destroyed[key] = block_height + # try: + # self.destroyed[block_height].add(key) + # except: + # self.destroyed[block_height] = {key} self._hit += 1 return i except: