connector
This commit is contained in:
parent
5f5b5fb228
commit
ac06d6474d
@ -595,11 +595,11 @@ class Connector:
|
|||||||
if self.utxo:
|
if self.utxo:
|
||||||
stxo, missed = set(), set()
|
stxo, missed = set(), set()
|
||||||
for i in tx["vIn"]:
|
for i in tx["vIn"]:
|
||||||
|
outpoint = b"".join((inp["txId"], int_to_bytes(inp["vOut"])))
|
||||||
try:
|
try:
|
||||||
stxo.add(tx["vIn"][i]["__coin__"])
|
stxo.add(outpoint, tx["vIn"][i]["__coin__"])
|
||||||
except:
|
except:
|
||||||
inp = tx["vIn"][i]
|
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, block_height)
|
||||||
stxo.add(r) if r else missed.add((outpoint, (block_height << 42) + (block_index << 21) + i))
|
stxo.add(r) if r else missed.add((outpoint, (block_height << 42) + (block_index << 21) + i))
|
||||||
|
|
||||||
|
|||||||
@ -229,7 +229,7 @@ class Worker:
|
|||||||
outpoint = b"".join((inp["txId"], int_to_bytes(inp["vOut"])))
|
outpoint = b"".join((inp["txId"], int_to_bytes(inp["vOut"])))
|
||||||
try:
|
try:
|
||||||
r = self.coins[outpoint]
|
r = self.coins[outpoint]
|
||||||
block["rawTx"][z]["vIn"][i]["__coin__"] = (outpoint, r[0], r[1], r[2])
|
block["rawTx"][z]["vIn"][i]["__coin__"] = r
|
||||||
self.destroyed_coins[r[0]] = True
|
self.destroyed_coins[r[0]] = True
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user