Browse Source

Discard any uncommitted changes as a result of the higher weight chain detection

online-level-zero-accounts-api-call
CalDescent 3 years ago
parent
commit
a8c79b807b
  1. 3
      src/main/java/org/qortal/controller/BlockMinter.java

3
src/main/java/org/qortal/controller/BlockMinter.java

@ -343,6 +343,9 @@ public class BlockMinter extends Thread {
LOGGER.debug("Unable to check for a higher weight chain. Proceeding anyway...");
}
// Discard any uncommitted changes as a result of the higher weight chain detection
repository.discardChanges();
// Clear variables that track low weight blocks
parentSignatureForLastLowWeightBlock = null;
timeOfLastLowWeightBlock = null;

Loading…
Cancel
Save