Catch ArithmeticException in block minter, so that it retries instead of giving up completely.

This commit is contained in:
CalDescent 2023-03-10 10:00:30 +00:00
parent 83b0ce53e6
commit 44aa0a6026

View File

@ -432,6 +432,10 @@ public class BlockMinter extends Thread {
// Unable to process block - report and discard
LOGGER.error("Unable to process newly minted block?", e);
newBlocks.clear();
} catch (ArithmeticException e) {
// Unable to process block - report and discard
LOGGER.error("Unable to process newly minted block?", e);
newBlocks.clear();
}
} finally {
blockchainLock.unlock();