Log the AT states reshape progress, as it seems to be taking a very long time.

This commit is contained in:
CalDescent 2021-08-07 19:18:20 +01:00
parent 481e6671c2
commit a7d594e566

View File

@ -849,6 +849,10 @@ public class HSQLDBDatabaseUpdates {
+ "WHERE height BETWEEN " + minHeight + " AND " + (minHeight + heightStep - 1) + "WHERE height BETWEEN " + minHeight + " AND " + (minHeight + heightStep - 1)
+ ")"); + ")");
stmt.execute("COMMIT"); 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"); stmt.execute("CHECKPOINT");