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:
|
case STOPPING:
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case BLOCK_LIMIT_REACHED:
|
|
||||||
// We've reached the limit of the blocks we can archive
|
// We've reached the limit of the blocks we can archive
|
||||||
// Sleep for a while to allow more to become available
|
// Sleep for a while to allow more to become available
|
||||||
case NOT_ENOUGH_BLOCKS:
|
case NOT_ENOUGH_BLOCKS:
|
||||||
|
@ -24,7 +24,6 @@ public class BlockArchiveWriter {
|
|||||||
OK,
|
OK,
|
||||||
STOPPING,
|
STOPPING,
|
||||||
NOT_ENOUGH_BLOCKS,
|
NOT_ENOUGH_BLOCKS,
|
||||||
BLOCK_LIMIT_REACHED,
|
|
||||||
BLOCK_NOT_FOUND
|
BLOCK_NOT_FOUND
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -99,7 +98,7 @@ public class BlockArchiveWriter {
|
|||||||
|
|
||||||
int currentHeight = startHeight + i;
|
int currentHeight = startHeight + i;
|
||||||
if (currentHeight >= endHeight) {
|
if (currentHeight >= endHeight) {
|
||||||
return BlockArchiveWriteResult.BLOCK_LIMIT_REACHED;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
//LOGGER.info("Fetching block {}...", currentHeight);
|
//LOGGER.info("Fetching block {}...", currentHeight);
|
||||||
|
@ -59,7 +59,6 @@ public class HSQLDBDatabaseArchiving {
|
|||||||
case STOPPING:
|
case STOPPING:
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
case BLOCK_LIMIT_REACHED:
|
|
||||||
case NOT_ENOUGH_BLOCKS:
|
case NOT_ENOUGH_BLOCKS:
|
||||||
// We've reached the limit of the blocks we can archive
|
// We've reached the limit of the blocks we can archive
|
||||||
// Return from the whole method
|
// Return from the whole method
|
||||||
|
Loading…
x
Reference in New Issue
Block a user