connector
This commit is contained in:
parent
6a76dcb9c3
commit
f40d1610ab
@ -614,15 +614,18 @@ class Connector:
|
||||
|
||||
if self.utxo:
|
||||
for i in tx["vOut"]:
|
||||
out = tx["vOut"][i]
|
||||
# if self.skip_opreturn and out["nType"] in (3, 8):
|
||||
# continue
|
||||
pointer = (block_height << 42) + (block_index << 21) + i
|
||||
try:
|
||||
address = out["scriptPubKey"]
|
||||
tx["vOut"][i]["__spent__"]
|
||||
except:
|
||||
address = b"".join((bytes([out["nType"]]), out["addressHash"]))
|
||||
self.utxo.set(b"".join((tx["txId"], int_to_bytes(i))), pointer, out["value"], address)
|
||||
out = tx["vOut"][i]
|
||||
# if self.skip_opreturn and out["nType"] in (3, 8):
|
||||
# continue
|
||||
pointer = (block_height << 42) + (block_index << 21) + i
|
||||
try:
|
||||
address = out["scriptPubKey"]
|
||||
except:
|
||||
address = b"".join((bytes([out["nType"]]), out["addressHash"]))
|
||||
self.utxo.set(b"".join((tx["txId"], int_to_bytes(i))), pointer, out["value"], address)
|
||||
|
||||
self.tx_cache.set(tx["txId"], True)
|
||||
try:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user