Restore FindAddress comment

This commit is contained in:
Kris Nuttycombe 2021-11-01 10:13:19 -06:00
parent e4e77eb389
commit b54d4cac7d
1 changed files with 3 additions and 0 deletions

View File

@ -235,6 +235,9 @@ struct SaplingExtendedFullViewingKey {
// given this xfvk.
std::optional<libzcash::SaplingPaymentAddress> Address(diversifier_index_t j) const;
// Returns the first index starting from j that generates a valid
// payment address, along with the corresponding address. Throws
// a runtime error if the diversifier space is exhausted.
std::pair<SaplingPaymentAddress, diversifier_index_t> FindAddress(diversifier_index_t j) const {
auto addr = Address(j);
while (!addr.has_value()) {