mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-08-02 00:31:24 +00:00
Fix a wrong lock, spotted by Andreas
This commit is contained in:
@@ -648,11 +648,11 @@ public class Wallet extends BaseTaggableObject implements Serializable, BlockCha
|
|||||||
|
|
||||||
/** See {@link org.bitcoinj.wallet.DeterministicKeyChain#setLookaheadSize(int)} for more info on this. */
|
/** See {@link org.bitcoinj.wallet.DeterministicKeyChain#setLookaheadSize(int)} for more info on this. */
|
||||||
public void setKeychainLookaheadSize(int lookaheadSize) {
|
public void setKeychainLookaheadSize(int lookaheadSize) {
|
||||||
lock.lock();
|
keychainLock.lock();
|
||||||
try {
|
try {
|
||||||
keychain.setLookaheadSize(lookaheadSize);
|
keychain.setLookaheadSize(lookaheadSize);
|
||||||
} finally {
|
} finally {
|
||||||
lock.unlock();
|
keychainLock.unlock();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user