forked from Qortal/qortal
Catch ArithmeticException in block minter, so that it retries instead of giving up completely.
This commit is contained in:
parent
83b0ce53e6
commit
44aa0a6026
@ -432,6 +432,10 @@ public class BlockMinter extends Thread {
|
|||||||
// Unable to process block - report and discard
|
// Unable to process block - report and discard
|
||||||
LOGGER.error("Unable to process newly minted block?", e);
|
LOGGER.error("Unable to process newly minted block?", e);
|
||||||
newBlocks.clear();
|
newBlocks.clear();
|
||||||
|
} catch (ArithmeticException e) {
|
||||||
|
// Unable to process block - report and discard
|
||||||
|
LOGGER.error("Unable to process newly minted block?", e);
|
||||||
|
newBlocks.clear();
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
blockchainLock.unlock();
|
blockchainLock.unlock();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user