From 3c1994aba6d0985115c747aeaff6da51f852d23a Mon Sep 17 00:00:00 2001 From: 4tochka Date: Wed, 8 May 2019 03:45:15 +0400 Subject: [PATCH] connector --- build/lib.macosx-10.9-x86_64-3.7/pybtc/connector.py | 10 +++++----- pybtc/connector/utxo.py | 10 ++++------ 2 files changed, 9 insertions(+), 11 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 dc7c434..c661342 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"] % 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 diff --git a/pybtc/connector/utxo.py b/pybtc/connector/utxo.py index 0184d6c..5399f8e 100644 --- a/pybtc/connector/utxo.py +++ b/pybtc/connector/utxo.py @@ -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: