Browse Source

Removed BLOCK_LIMIT_REACHED result from the block archive writer.

This wasn't needed, and is now instead caught by the NOT_ENOUGH_BLOCKS result.
block-archive
CalDescent 3 years ago
parent
commit
37e03bf2bb
  1. 1
      src/main/java/org/qortal/controller/repository/BlockArchiver.java
  2. 3
      src/main/java/org/qortal/repository/BlockArchiveWriter.java
  3. 1
      src/main/java/org/qortal/repository/hsqldb/HSQLDBDatabaseArchiving.java

1
src/main/java/org/qortal/controller/repository/BlockArchiver.java

@ -71,7 +71,6 @@ public class BlockArchiver implements Runnable {
case STOPPING:
return;
case BLOCK_LIMIT_REACHED:
// We've reached the limit of the blocks we can archive
// Sleep for a while to allow more to become available
case NOT_ENOUGH_BLOCKS:

3
src/main/java/org/qortal/repository/BlockArchiveWriter.java

@ -24,7 +24,6 @@ public class BlockArchiveWriter {
OK,
STOPPING,
NOT_ENOUGH_BLOCKS,
BLOCK_LIMIT_REACHED,
BLOCK_NOT_FOUND
}
@ -99,7 +98,7 @@ public class BlockArchiveWriter {
int currentHeight = startHeight + i;
if (currentHeight >= endHeight) {
return BlockArchiveWriteResult.BLOCK_LIMIT_REACHED;
break;
}
//LOGGER.info("Fetching block {}...", currentHeight);

1
src/main/java/org/qortal/repository/hsqldb/HSQLDBDatabaseArchiving.java

@ -59,7 +59,6 @@ public class HSQLDBDatabaseArchiving {
case STOPPING:
return false;
case BLOCK_LIMIT_REACHED:
case NOT_ENOUGH_BLOCKS:
// We've reached the limit of the blocks we can archive
// Return from the whole method

Loading…
Cancel
Save