Fixed some bugs found in unit testing.

This commit is contained in:
CalDescent 2021-09-12 09:57:12 +01:00
parent 2a36b83dea
commit 6a55b052f5
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ public class BlockArchiveWriter {
}
int currentHeight = startHeight + i;
if (currentHeight >= endHeight) {
if (currentHeight > endHeight) {
break;
}

View File

@ -744,7 +744,7 @@ public class HSQLDBATRepository implements ATRepository {
int deletedCount = 0;
for (int height = minHeight; height < maxHeight; height++) {
for (int height = minHeight; height <= maxHeight; height++) {
// Give up if we're stopping
if (Controller.isStopping()) {