Browse Source

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

add-atstates-index
CalDescent 3 years ago
parent
commit
a7d594e566
  1. 4
      src/main/java/org/qortal/repository/hsqldb/HSQLDBDatabaseUpdates.java

4
src/main/java/org/qortal/repository/hsqldb/HSQLDBDatabaseUpdates.java

@ -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");

Loading…
Cancel
Save