Clarify documentation of CWallet::FindAccountForSelector

This commit is contained in:
Kris Nuttycombe 2022-01-25 09:08:52 -07:00
parent beb0f2bc1f
commit b8a5131af9
1 changed files with 5 additions and 2 deletions

View File

@ -1234,8 +1234,11 @@ public:
static ZTXOSelector LegacyTransparentZTXOSelector();
/**
* Look up the account for a given selector, ensuring that the account
* exists in this wallet.
* Look up the account for a given selector. This resolves the account ID
* even in the in that a bare transparent or Sapling address that
* corresponds to a non-legacy account is provided as a selector. This is
* used in z_sendmany to ensure that we always correctly determine change
* addresses and OVKs on the basis of account UFVKs when possible.
*/
std::optional<libzcash::AccountId> FindAccountForSelector(const ZTXOSelector& paymentSource) const;