Closed cpu closed 6 years ago
The second argument to getEntries is inclusive. When fetching to the current treesize we need to fetch the entries up to treesize - 1.
getEntries
Similarly, when looping we need to exit when start == end, meaning the loop should run when start < end, not start <= end.
The second argument to
getEntries
is inclusive. When fetching to the current treesize we need to fetch the entries up to treesize - 1.Similarly, when looping we need to exit when start == end, meaning the loop should run when start < end, not start <= end.