mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-07 14:00:08 +02:00
multi: fix dropped errors
This commit is contained in:
@ -349,7 +349,7 @@ func cipherTextToMnemonic(cipherText [EncipheredCipherSeedSize]byte) (Mnemonic,
|
||||
for i := 0; i < NummnemonicWords; i++ {
|
||||
index, err := cipherBits.ReadBits(bitsPerWord)
|
||||
if err != nil {
|
||||
return words, nil
|
||||
return Mnemonic{}, err
|
||||
}
|
||||
|
||||
words[i] = defaultWordList[index]
|
||||
@ -366,7 +366,7 @@ func (c *CipherSeed) ToMnemonic(pass []byte) (Mnemonic, error) {
|
||||
// with our KDF salt appended to it.
|
||||
cipherText, err := c.encipher(pass)
|
||||
if err != nil {
|
||||
return Mnemonic{}, nil
|
||||
return Mnemonic{}, err
|
||||
}
|
||||
|
||||
// Now that we have our cipher text, we'll convert it into a mnemonic
|
||||
|
Reference in New Issue
Block a user