diff options
author | Jonas Schnelli <dev@jonasschnelli.ch> | 2017-09-22 20:48:14 -0600 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2017-09-28 17:29:04 -0700 |
commit | 8213838db2e0625b7a74e5f9b6837e59da6cbcb3 (patch) | |
tree | 5d9bb4969bba02a9143cd796b324ad6c04dca8d1 /src/qt/bitcoinaddressvalidator.cpp | |
parent | 06eaca63139ac02abf82b0245b42493c9b383905 (diff) |
[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
Diffstat (limited to 'src/qt/bitcoinaddressvalidator.cpp')
-rw-r--r-- | src/qt/bitcoinaddressvalidator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/bitcoinaddressvalidator.cpp b/src/qt/bitcoinaddressvalidator.cpp index 4dd1092806..362a71f04d 100644 --- a/src/qt/bitcoinaddressvalidator.cpp +++ b/src/qt/bitcoinaddressvalidator.cpp @@ -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') // Characters invalid in both Base58 and Bech32 { // Alphanumeric and not a 'forbidden' character } |