From 4c0ae85d30a92cc5e8ccaf669e1ba815918a5d06 Mon Sep 17 00:00:00 2001 From: 4tochka Date: Wed, 8 May 2019 03:59:38 +0400 Subject: [PATCH] connector --- build/lib.macosx-10.9-x86_64-3.7/pybtc/connector.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 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 c661342..e014bef 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"] % 100 == 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"] % 200 == 0: + self.utxo.destroy_utxo(block["height"]) self.blocks_processed_count += 1 @@ -805,7 +805,6 @@ class UTXO(): del self.cached[outpoint] def destroy_utxo(self, block_height): - return block_height -= self.maturity for key in range(self.destroyed_utxo_block + 1, block_height + 1): if key not in self.destroyed: continue