mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
modify var name
This commit is contained in:
parent
95f90216af
commit
b6a923fef8
1 changed files with 3 additions and 3 deletions
|
|
@ -77,8 +77,8 @@ var (
|
||||||
// PinRegexp is the regular expression used to validate PIN codes.
|
// PinRegexp is the regular expression used to validate PIN codes.
|
||||||
PinRegexp = regexp.MustCompile(`^[0-9]{6,}$`)
|
PinRegexp = regexp.MustCompile(`^[0-9]{6,}$`)
|
||||||
|
|
||||||
// PunRegexp is the regular expression used to validate PUN codes.
|
// PukRegexp is the regular expression used to validate PUK codes.
|
||||||
PunRegexp = regexp.MustCompile(`^[0-9]{12,}$`)
|
PukRegexp = regexp.MustCompile(`^[0-9]{12,}$`)
|
||||||
)
|
)
|
||||||
|
|
||||||
// List of APDU command-related constants
|
// List of APDU command-related constants
|
||||||
|
|
@ -396,7 +396,7 @@ func (w *Wallet) Open(passphrase string) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
if !PunRegexp.MatchString(passphrase) {
|
if !PukRegexp.MatchString(passphrase) {
|
||||||
w.log.Error("PUK needs to be at least 12 digits")
|
w.log.Error("PUK needs to be at least 12 digits")
|
||||||
return ErrPINUnblockNeeded
|
return ErrPINUnblockNeeded
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue