Browse Source

no lock check on readonly

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

3
jmclient/jmclient/wallet_utils.py

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

Loading…
Cancel
Save