Skip to content

Commit

Permalink
Fix behavior of tokenlist/seedlist with Electrum1 wallets
Browse files Browse the repository at this point in the history
  • Loading branch information
3rdIteration committed Jan 6, 2024
1 parent 2b15453 commit 87b1f21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion btcrecover/btcrseed.py
Original file line number Diff line number Diff line change
Expand Up @@ -3371,7 +3371,8 @@ def main(argv):
if args.mnemonic_length is None:
exit("Error: Mnemonic length needs to be specificed if using tokenlist or passwordlist")
if args.language is None:
exit("Error: Language needs to be specificed if using tokenlist or passwordlist")
if args.wallet_type != 'electrum1':
exit("Error: Language needs to be specificed if using tokenlist or passwordlist")
config_mnemonic_params["mnemonic_guess"] = ("seed_token_placeholder " * args.mnemonic_length)[:-1]
phase["big_typos"] = args.mnemonic_length
phase["typos"] = args.mnemonic_length
Expand Down

0 comments on commit 87b1f21

Please sign in to comment.