1
0

qt: fix enable/disable max button for openalias and restrict openalias to address only

This commit is contained in:
Sander van Grieken
2023-06-26 13:25:09 +02:00
parent eed016bd7e
commit 3a1e5244b8
2 changed files with 8 additions and 3 deletions

View File

@@ -401,7 +401,8 @@ class PaymentIdentifier(Logger):
'WARNING: the alias "{}" could not be validated via an additional '
'security check, DNSSEC, and thus may not be correct.').format(self.emaillike)
try:
scriptpubkey = self.parse_output(address)
assert bitcoin.is_address(address)
scriptpubkey = bytes.fromhex(bitcoin.address_to_script(address))
self._type = PaymentIdentifierType.OPENALIAS
self.spk = scriptpubkey
self.set_state(PaymentIdentifierState.AVAILABLE)