mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-24 14:50:40 +01:00
Merge pull request #3257 from Crypt-iQ/restorechanbackup_fix_0630
chanrestore: return error instead of nil if failed derivation
This commit is contained in:
commit
108f25dc89
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ func (c *chanDBRestorer) openChannelShell(backup chanbackup.Single) (
|
|||
// shachain...
|
||||
privKey, err := c.secretKeys.DerivePrivKey(backup.ShaChainRootDesc)
|
||||
if err != nil {
|
||||
return nil, nil
|
||||
return nil, fmt.Errorf("unable to derive shachain root key: %v", err)
|
||||
}
|
||||
revRoot, err := chainhash.NewHash(privKey.Serialize())
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue