Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

Commit

Permalink
fixed no-password option so it now passes the test
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-belcher committed Apr 14, 2017
1 parent e40c423 commit 49ec790
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions joinmarket/wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,14 +179,15 @@ def read_wallet_file_data(self, filename, pwd=None):
decrypted = False
trieddefault = False
while not decrypted:
if not trieddefault:
password = ''
trieddefault = True
if pwd:
password = pwd
else:
if pwd:
password = pwd
if not trieddefault:
password = ''
trieddefault = True
else:
password = getpass('Enter wallet decryption passphrase: ')

password_key = btc.bin_dbl_sha256(password)
encrypted_seed = walletdata['encrypted_seed']
try:
Expand Down

0 comments on commit 49ec790

Please sign in to comment.