connector

This commit is contained in:
4tochka 2019-05-10 00:47:21 +04:00
parent 202b10a8d7
commit 036f736c63
2 changed files with 3 additions and 3 deletions

View File

@ -597,7 +597,7 @@ class Connector:
stxo.add((outpoint, inp["_c_"][0], inp["_c_"][1], inp["_c_"][2]))
self.yy += 1
except Exception as err:
r = self.utxo.get(outpoint, block_height)
r = self.utxo.get(outpoint)
stxo.add(r) if r else missed.add((outpoint, (block_height << 42) + (block_index << 21) + i))
if missed:
@ -721,7 +721,7 @@ class Connector:
for i in tx["vIn"]:
inp = tx["vIn"][i]
outpoint = b"".join((inp["txId"], int_to_bytes(inp["vOut"])))
r = self.utxo.get(outpoint, block_height)
r = self.utxo.get(outpoint)
stxo.add(r) if r else missed.add((outpoint, (block_height << 42) + (block_index << 21) + i))
if missed:

View File

@ -144,7 +144,7 @@ class UTXO():
finally:
self.save_process = False
def get(self, key, block_height):
def get(self, key):
self._requests += 1
try:
i = pickle.loads(self.cached[key])