lntest+lnwallet: add AddressInfo to WalletController
We need to be able to query the watch-only wallet about a public key when trying to sign with a key that we don't know the family or index of. The easiest way to do that is to leverage the wallet's address index to query the derivation path for a public key. To give the RPC wallet access to that functionality, we need to expose the method on the WalletController interface.
This commit is contained in:
3 files changed
+21
No files matched your search
@@ -90,6 +90,13 @@ func (w *WalletController) IsOurAddress(btcutil.Address) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// AddressInfo currently returns a dummy value.
|
||||
func (w *WalletController) AddressInfo(
|
||||
btcutil.Address) (waddrmgr.ManagedAddress, error) {
|
||||
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
// ListAccounts currently returns a dummy value.
|
||||
func (w *WalletController) ListAccounts(string,
|
||||
*waddrmgr.KeyScope) ([]*waddrmgr.AccountProperties, error) {
|
||||
|
||||
Reference in new issue
Block a user