Skip to content

Commit 8213838

Browse files
jonasschnellisipa
authored andcommitted
[Qt] tolerate BIP173/bech32 addresses during input validation
This eases the during-type validation to allow Bech32 chars. Once the focus has been lost, the address will be properly verified through IsValidDestinationString
1 parent 06eaca6 commit 8213838

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qt/bitcoinaddressvalidator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ QValidator::State BitcoinAddressEntryValidator::validate(QString &input, int &po
6767
if (((ch >= '0' && ch<='9') ||
6868
(ch >= 'a' && ch<='z') ||
6969
(ch >= 'A' && ch<='Z')) &&
70-
ch != 'l' && ch != 'I' && ch != '0' && ch != 'O')
70+
ch != 'I' && ch != 'O') // Characters invalid in both Base58 and Bech32
7171
{
7272
// Alphanumeric and not a 'forbidden' character
7373
}

0 commit comments

Comments
 (0)