Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only pass limit argument to z_getsubtreesbyindex if maxEntries > 0 #445

Merged
merged 1 commit into from
Jul 11, 2023

Conversation

str4d
Copy link
Collaborator

@str4d str4d commented Jul 11, 2023

We also remove the i < maxEntries bound on returned results, as the limit parameter already causes zcashd to bound its returned entries.

Closes #444.

Please ensure this checklist is followed for any pull requests for this repo. This checklist must be checked by both the PR creator and by anyone who reviews the PR.

  • Relevant documentation for this PR has to be completed before the PR can be merged
  • A test plan for the PR must be documented in the PR notes and included in the test plan for the next regular release

As a note, all CI tests need to be passing and all appropriate code reviews need to be done before this PR can be merged

We also remove the `i < maxEntries` bound on returned results, as the
`limit` parameter already causes `zcashd` to bound its returned entries.

Closes #444.
@LarryRuane
Copy link
Collaborator

ACK d216fd8
Good catch!

@LarryRuane LarryRuane merged commit b805382 into master Jul 11, 2023
@LarryRuane LarryRuane deleted the 444-fix-getsubtreeroots-maxentries branch July 11, 2023 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GetSubtreeRoots returns no entries when asked to return all entries
2 participants