forked from Qortal/qortal
Run the bulk block archiver any time that it isn't reported to be up to date. This should allow it to re-run if the user quits the core before it completes.
This commit is contained in:
parent
b00c1c1575
commit
f09fb5a209
@ -33,9 +33,9 @@ public class HSQLDBDatabaseArchiving {
|
||||
|
||||
public static boolean buildBlockArchive(Repository repository, long fileSizeTarget) throws DataException {
|
||||
|
||||
// Only build the archive if we have never done so before
|
||||
int archiveHeight = repository.getBlockArchiveRepository().getBlockArchiveHeight();
|
||||
if (archiveHeight > 0) {
|
||||
// Only build the archive if we haven't already got one that is up to date
|
||||
boolean upToDate = BlockArchiveWriter.isArchiverUpToDate(repository);
|
||||
if (upToDate) {
|
||||
// Already archived
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user