forked from Qortal/qortal
Log the AT states reshape progress, as it seems to be taking a very long time.
This commit is contained in:
parent
481e6671c2
commit
a7d594e566
@ -849,6 +849,10 @@ public class HSQLDBDatabaseUpdates {
|
||||
+ "WHERE height BETWEEN " + minHeight + " AND " + (minHeight + heightStep - 1)
|
||||
+ ")");
|
||||
stmt.execute("COMMIT");
|
||||
|
||||
int processed = Math.min(minHeight + heightStep - 1, blockchainHeight);
|
||||
double percentage = (double)processed / (double)blockchainHeight * 100.0f;
|
||||
LOGGER.info(String.format("Processed %d of %d blocks (%.1f%%)", processed, blockchainHeight, percentage));
|
||||
}
|
||||
stmt.execute("CHECKPOINT");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user