Browse Source

no lock check on readonly

master
roshii 2 years ago
parent
commit
dafc1800ba
  1. 5
      jmclient/jmclient/wallet_utils.py

5
jmclient/jmclient/wallet_utils.py

@ -1532,8 +1532,9 @@ def open_wallet(path, ask_for_password=True, password=None, read_only=False,
if ask_for_password and Storage.is_encrypted_storage_file(path):
while True:
try:
# Verify lock status before trying to open wallet.
Storage.verify_lock(path)
# Verify lock status if not read only before trying to open wallet.
if not read_only:
Storage.verify_lock(path)
# do not try empty password, assume unencrypted on empty password
pwd = get_password("Enter passphrase to decrypt wallet: ") or None
storage = Storage(path, password=pwd, read_only=read_only)

Loading…
Cancel
Save