Browse Source

ignore matched txs with invalid sPKs when scanning

master
openoms 3 years ago
parent
commit
abbffefda0
No known key found for this signature in database
GPG Key ID: 5BFB77609B081B65
  1. 7
      jmbitcoin/jmbitcoin/snicker.py

7
jmbitcoin/jmbitcoin/snicker.py

@ -161,8 +161,11 @@ def is_snicker_v1_tx(tx):
except CCoinAddressError:
return False
else:
if not btc.CCoinAddress.from_scriptPubKey(
vo.scriptPubKey).get_scriptPubKey_type() == matched_spk:
try:
if not btc.CCoinAddress.from_scriptPubKey(
vo.scriptPubKey).get_scriptPubKey_type() == matched_spk:
return False
except CCoinAddressError:
return False
assert matched_spk
return True

Loading…
Cancel
Save