diff --git a/lnwallet/interface.go b/lnwallet/interface.go index 767550ec1..9255c513e 100644 --- a/lnwallet/interface.go +++ b/lnwallet/interface.go @@ -660,6 +660,12 @@ func InternalKeyForAddr(wallet WalletController, netParams *chaincfg.Params, return none, nil } + // Imported addresses do not provide private keys, so they do not + // implement waddrmgr.ManagedPubKeyAddress. See RPC ImportTapscript. + if walletAddr.Imported() { + return none, nil + } + pubKeyAddr, ok := walletAddr.(waddrmgr.ManagedPubKeyAddress) if !ok { return none, fmt.Errorf("expected pubkey addr, got %T",