connector
This commit is contained in:
parent
c88ea51cd4
commit
43c1d29c7f
@ -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 ")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user