cmd/lncli: ensure mnemonic for restore flow is exactly 24 words
This commit is contained in:
parent
0933f42674
commit
ddfe73eedb
@ -1139,6 +1139,12 @@ mnemonicCheck:
|
|||||||
|
|
||||||
fmt.Println()
|
fmt.Println()
|
||||||
|
|
||||||
|
if len(cipherSeedMnemonic) != 24 {
|
||||||
|
return fmt.Errorf("wrong cipher seed mnemonic "+
|
||||||
|
"length: got %v words, expecting %v words",
|
||||||
|
len(CipherSeedMnemonic), 24)
|
||||||
|
}
|
||||||
|
|
||||||
// Additionally, the user may have a passphrase, that will also
|
// Additionally, the user may have a passphrase, that will also
|
||||||
// need to be provided so the daemon can properly decipher the
|
// need to be provided so the daemon can properly decipher the
|
||||||
// cipher seed.
|
// cipher seed.
|
||||||
|
Loading…
Reference in New Issue
Block a user