forked from Qortal/qortal
Discard any uncommitted changes as a result of the higher weight chain detection
This commit is contained in:
parent
2637311ef5
commit
a8c79b807b
@ -343,6 +343,9 @@ public class BlockMinter extends Thread {
|
|||||||
LOGGER.debug("Unable to check for a higher weight chain. Proceeding anyway...");
|
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
|
// Clear variables that track low weight blocks
|
||||||
parentSignatureForLastLowWeightBlock = null;
|
parentSignatureForLastLowWeightBlock = null;
|
||||||
timeOfLastLowWeightBlock = null;
|
timeOfLastLowWeightBlock = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user