Fixed issue in rebase

This commit is contained in:
CalDescent 2022-01-30 20:17:46 +00:00
parent 483e7549f8
commit 816b01c1fc

View File

@ -863,7 +863,7 @@ public class Synchronizer extends Thread {
// Make sure we're the only thread modifying the blockchain
// If we're already synchronizing with another peer then this will also return fast
ReentrantLock blockchainLock = Controller.getInstance().getBlockchainLock();
if (!blockchainLock.tryLock(3, TimeUnit.SECONDS))
if (!blockchainLock.tryLock(3, TimeUnit.SECONDS)) {
// Wasn't peer's fault we couldn't sync
LOGGER.info("Synchronizer couldn't acquire blockchain lock");
return SynchronizationResult.NO_BLOCKCHAIN_LOCK;