if decrypted private key is empty, no longer save the encrypted empty string as private key
This commit is contained in:
parent
481e265ec7
commit
0fa9e8d9f5
1 changed files with 1 additions and 0 deletions
|
@ -363,6 +363,7 @@ class BaseAccount:
|
||||||
# failed to remove padding, password is wrong
|
# failed to remove padding, password is wrong
|
||||||
return False
|
return False
|
||||||
if not private_key_string:
|
if not private_key_string:
|
||||||
|
self.private_key_string = ""
|
||||||
self.private_key = None
|
self.private_key = None
|
||||||
return True
|
return True
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue