forked from Qortal/qortal
Log when BlockMinter fails to acquire blockchain lock after waiting
This commit is contained in:
parent
1bca152d9c
commit
44e8b3e6e7
@ -177,8 +177,10 @@ public class BlockMinter extends Thread {
|
||||
|
||||
// Make sure we're the only thread modifying the blockchain
|
||||
ReentrantLock blockchainLock = Controller.getInstance().getBlockchainLock();
|
||||
if (!blockchainLock.tryLock(30, TimeUnit.SECONDS))
|
||||
if (!blockchainLock.tryLock(30, TimeUnit.SECONDS)) {
|
||||
LOGGER.warn("Couldn't acquire blockchain lock even after waiting 30 seconds");
|
||||
continue;
|
||||
}
|
||||
|
||||
boolean newBlockMinted = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user