We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32d8cd8 commit 8081b84Copy full SHA for 8081b84
src/pivx_parser.py
@@ -72,7 +72,8 @@ def ParseTxOutput(p, isTestnet=False):
72
vout["scriptPubKey"]["addresses"] = []
73
try:
74
locking_script = bytes.fromhex(vout["scriptPubKey"]["hex"])
75
- if len(locking_script) > 0:
+ # add addresses only if P2PKH or P2PK
76
+ if len(locking_script) in [25, 35]:
77
add_bytes = extract_pkh_from_locking_script(locking_script)
78
address = pubkeyhash_to_address(add_bytes, isTestnet)
79
vout["scriptPubKey"]["addresses"].append(address)
0 commit comments