forked from Qortal/qortal
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.
This commit is contained in:
parent
5656de79a2
commit
37e03bf2bb
@ -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:
|
||||
|
@ -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);
|
||||
|
@ -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…
Reference in New Issue
Block a user