aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonas Schnelli <[email protected]>2017-09-22 20:48:14 -0600
committerPieter Wuille <[email protected]>2017-09-28 17:29:04 -0700
commit8213838db2e0625b7a74e5f9b6837e59da6cbcb3 (patch)
tree5d9bb4969bba02a9143cd796b324ad6c04dca8d1 /src
parent[RPC] Wallet: test importing of native witness scripts (diff)
downloaddiscoin-8213838db2e0625b7a74e5f9b6837e59da6cbcb3.tar.xz
discoin-8213838db2e0625b7a74e5f9b6837e59da6cbcb3.zip
[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')
-rw-r--r--src/qt/bitcoinaddressvalidator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/bitcoinaddressvalidator.cpp b/src/qt/bitcoinaddressvalidator.cpp
index 4dd109280..362a71f04 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
}