Skip to content

Commit 74188dd

Browse files
committed
lightning-hsmtool: Fix getsecret does not show mnemonic after typing password
1 parent 13608c5 commit 74188dd

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tools/lightning-hsmtool.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,12 +280,11 @@ static void print_secret(const char *hsm_secret_path, const char *id, bool must_
280280
case HSM_SECRET_ENCRYPTED:
281281
errx(ERROR_USAGE, "Encrypted hsm_secret");
282282
case HSM_SECRET_MNEMONIC_NO_PASS:
283+
case HSM_SECRET_MNEMONIC_WITH_PASS:
283284
if (must_be_oldstyle)
284285
errx(ERROR_USAGE, "Cannot use getcodexsecret with modern nodes: use getsecret");
285286
printf("%s\n", hsms->mnemonic);
286287
return;
287-
case HSM_SECRET_MNEMONIC_WITH_PASS:
288-
errx(ERROR_USAGE, "hsm_secret with passphrase");
289288
case HSM_SECRET_PLAIN:
290289
if (id == NULL)
291290
errx(ERROR_USAGE, "Must set 'id' for a codex32 secret");

0 commit comments

Comments
 (0)