mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
[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
This commit is contained in:
parent
06eaca6313
commit
8213838db2
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user