Skip to content
Snippets Groups Projects
Commit abada9ff authored by Fabian Schuh's avatar Fabian Schuh
Browse files

[wallet] locked() returns False if there are keys preloaded

parent d8dcc7b5
No related branches found
No related tags found
No related merge requests found
...@@ -130,6 +130,8 @@ class Wallet(): ...@@ -130,6 +130,8 @@ class Wallet():
def locked(self): def locked(self):
""" Is the wallet database locked? """ Is the wallet database locked?
""" """
if Wallet.keys: # Keys have been manually provided!
return False
try: try:
self.tryUnlockFromEnv() self.tryUnlockFromEnv()
except: except:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment