@ -847,7 +847,7 @@ public class Controller extends Thread {
private void processIncomingTransactionsQueue() {
if (this.incomingTransactions.isEmpty()) {
// Don't bother locking if there are no new transactions to process
// Nothing to do?
return;
}
@ -912,6 +912,11 @@ public class Controller extends Thread {
sigValidTransactions.add(transaction);
if (sigValidTransactions.isEmpty()) {
try {
ReentrantLock blockchainLock = Controller.getInstance().getBlockchainLock();
if (!blockchainLock.tryLock(2, TimeUnit.SECONDS)) {