Skip to content

Commit

Permalink
[Qt] tolerate BIP173/bech32 addresses during input validation
Browse files Browse the repository at this point in the history
This eases the during-type validation to allow Bech32 chars.
Once the focus has been lost, the address will be properly verified through IsValidDestinationString
  • Loading branch information
jonasschnelli committed Sep 23, 2017
1 parent 6fd6aa6 commit f86c058
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qt/bitcoinaddressvalidator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ QValidator::State BitcoinAddressEntryValidator::validate(QString &input, int &po
if (((ch >= '0' && ch<='9') ||
(ch >= 'a' && ch<='z') ||
(ch >= 'A' && ch<='Z')) &&
ch != 'l' && ch != 'I' && ch != '0' && ch != 'O')
ch != 'I' && ch != 'O')
{
// Alphanumeric and not a 'forbidden' character
}
Expand Down

0 comments on commit f86c058

Please sign in to comment.