lnwallet/btcwallet/singer: use chainKeyScope to fetch scoped mgr

This commit is contained in:
Conner Fromknecht 2018-03-12 19:20:07 -07:00
parent fbef815530
commit ca7992e8dd
No known key found for this signature in database
GPG Key ID: 39DE78FBE6ACB0EF

View File

@ -83,7 +83,7 @@ func (b *BtcWallet) fetchPrivKey(keyDesc *keychain.KeyDescriptor) (*btcec.Privat
if !keyDesc.KeyLocator.IsEmpty() { if !keyDesc.KeyLocator.IsEmpty() {
// We'll assume the special lightning key scope in this case. // We'll assume the special lightning key scope in this case.
scopedMgr, err := b.wallet.Manager.FetchScopedKeyManager( scopedMgr, err := b.wallet.Manager.FetchScopedKeyManager(
lightningKeyScope, b.chainKeyScope,
) )
if err != nil { if err != nil {
return nil, err return nil, err