autosign: skip dfl wallet prompt if --seed-len or --mnemonic-fmt specified

This commit is contained in:
The MMGen Project 2026-05-07 17:52:59 +00:00
commit 9e40e6c8c9
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
3 changed files with 10 additions and 6 deletions

View file

@ -227,8 +227,6 @@ class CmdTestAutosignBase(CmdTestBase):
t.expect('Use default wallet for autosigning? (Y/n): ', 'y')
t.passphrase('MMGen wallet', wallet_passwd)
else:
if use_dfl_wallet is not None: # None => no dfl wallet present
t.expect('Use default wallet for autosigning? (Y/n): ', 'n')
mn_file = mn_file or {'mmgen': dfl_words_file, 'bip39': dfl_bip39_file}[mn_type]
mn = read_from_file(mn_file).strip().split()
if not seed_len: