connector
This commit is contained in:
parent
399bdfd9bd
commit
0effe6fa0f
@ -617,16 +617,16 @@ class Connector:
|
|||||||
for i in tx["vOut"]:
|
for i in tx["vOut"]:
|
||||||
if "_s_" in tx["vOut"][i]:
|
if "_s_" in tx["vOut"][i]:
|
||||||
self.tt += 1
|
self.tt += 1
|
||||||
# else:else
|
else:
|
||||||
out = tx["vOut"][i]
|
out = tx["vOut"][i]
|
||||||
# if self.skip_opreturn and out["nType"] in (3, 8):
|
# if self.skip_opreturn and out["nType"] in (3, 8):
|
||||||
# continue
|
# continue
|
||||||
pointer = (block_height << 42) + (block_index << 21) + i
|
pointer = (block_height << 42) + (block_index << 21) + i
|
||||||
try:
|
try:
|
||||||
address = out["scriptPubKey"]
|
address = out["scriptPubKey"]
|
||||||
except:
|
except:
|
||||||
address = b"".join((bytes([out["nType"]]), out["addressHash"]))
|
address = b"".join((bytes([out["nType"]]), out["addressHash"]))
|
||||||
self.utxo.set(b"".join((tx["txId"], int_to_bytes(i))), pointer, out["value"], address)
|
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