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