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 839e852..94277cf 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 @@ -380,9 +380,9 @@ class Connector: self.last_block_height = block["height"] if self.utxo_data: if not self.deep_synchronization: - self.utxo.destroy_utxo(block["height"]) + self.utxo.destroy_utxo() elif block["height"] % 500 == 0: - self.utxo.destroy_utxo(block["height"]) + self.utxo.destroy_utxo() self.blocks_processed_count += 1 diff --git a/pybtc/connector/connector.py b/pybtc/connector/connector.py index 2a09896..43b6b02 100644 --- a/pybtc/connector/connector.py +++ b/pybtc/connector/connector.py @@ -371,7 +371,7 @@ class Connector: self.block_headers_cache.set(block["hash"], block["height"]) self.last_block_height = block["height"] if self.utxo_data: - self.utxo.destroy_utxo(block["height"]) + self.utxo.destroy_utxo() self.blocks_processed_count += 1 diff --git a/pybtc/connector/utxo.py b/pybtc/connector/utxo.py index afab71e..ad4f944 100644 --- a/pybtc/connector/utxo.py +++ b/pybtc/connector/utxo.py @@ -34,7 +34,7 @@ class UTXO(): self.outs_total = 0 def set(self, outpoint, pointer, amount, address): - self.cached[outpoint] = (pointer, amount, address) + self.cached[outpoint] = [pointer, amount, address] self.outs_total += 1 if pointer: self.last_cached_block = pointer >> 42 @@ -42,7 +42,7 @@ class UTXO(): def remove(self, outpoint): del self.cached[outpoint] - def destroy_utxo(self, block_height): + def destroy_utxo(self): while self.destroyed: outpoint = self.destroyed.pop() try: