diff --git a/pybtc/connector/connector.py b/pybtc/connector/connector.py index e67f332..1d5994c 100644 --- a/pybtc/connector/connector.py +++ b/pybtc/connector/connector.py @@ -584,6 +584,7 @@ class Connector: try: stxo = None self.tx_in_process.add(tx["txId"]) + с = 0 if not tx["coinbase"]: if block_height is not None: await self.wait_block_dependences(tx) @@ -594,6 +595,7 @@ class Connector: outpoint = b"".join((inp["txId"], int_to_bytes(inp["vOut"]))) try: stxo.add(outpoint, tx["vIn"][i]["_c_"]) + с += 1 except: r = self.utxo.get(outpoint, block_height) stxo.add(r) if r else missed.add((outpoint, (block_height << 42) + (block_index << 21) + i)) @@ -602,7 +604,7 @@ class Connector: await self.utxo.load_utxo() [stxo.add(self.utxo.get_loaded(o, block_height)) for o, s in missed] - if len(stxo) != len(tx["vIn"]) and not self.cache_loading: + if len(stxo) + с != len(tx["vIn"]) and not self.cache_loading: self.log.critical("utxo get failed " + rh2s(tx["txId"])) self.log.critical(str(stxo)) raise Exception("utxo get failed ")