mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 15:11:09 +02:00
lnwallet: fix error message
Include the variable of interest (walletAddr), not the outcome of the check (pubKeyAddr) which is always nil.
This commit is contained in:
@@ -663,7 +663,7 @@ func InternalKeyForAddr(wallet WalletController, netParams *chaincfg.Params,
|
|||||||
pubKeyAddr, ok := walletAddr.(waddrmgr.ManagedPubKeyAddress)
|
pubKeyAddr, ok := walletAddr.(waddrmgr.ManagedPubKeyAddress)
|
||||||
if !ok {
|
if !ok {
|
||||||
return none, fmt.Errorf("expected pubkey addr, got %T",
|
return none, fmt.Errorf("expected pubkey addr, got %T",
|
||||||
pubKeyAddr)
|
walletAddr)
|
||||||
}
|
}
|
||||||
|
|
||||||
_, derivationPath, _ := pubKeyAddr.DerivationInfo()
|
_, derivationPath, _ := pubKeyAddr.DerivationInfo()
|
||||||
|
Reference in New Issue
Block a user