diff --git a/core/src/main/java/org/bitcoinj/core/Wallet.java b/core/src/main/java/org/bitcoinj/core/Wallet.java index a990cb13..5e0ea872 100644 --- a/core/src/main/java/org/bitcoinj/core/Wallet.java +++ b/core/src/main/java/org/bitcoinj/core/Wallet.java @@ -96,10 +96,10 @@ public class Wallet extends BaseTaggableObject private static final Logger log = LoggerFactory.getLogger(Wallet.class); private static final int MINIMUM_BLOOM_DATA_LENGTH = 8; - // Ordering: lock > keychainLock. Keychain is protected separately to allow fast querying of current receive address + // Ordering: lock > keyChainGroupLock. KeyChainGroup is protected separately to allow fast querying of current receive address // even if the wallet itself is busy e.g. saving or processing a big reorg. Useful for reducing UI latency. protected final ReentrantLock lock = Threading.lock("wallet"); - protected final ReentrantLock keychainLock = Threading.lock("wallet-keychain"); + protected final ReentrantLock keyChainGroupLock = Threading.lock("wallet-keychaingroup"); // The various pools below give quick access to wallet-relevant transactions by the state they're in: // @@ -148,10 +148,10 @@ public class Wallet extends BaseTaggableObject // The key chain group is not thread safe, and generally the whole hierarchy of objects should not be mutated // outside the wallet lock. So don't expose this object directly via any accessors! - @GuardedBy("keychainLock") protected KeyChainGroup keychain; + @GuardedBy("keyChainGroupLock") protected KeyChainGroup keyChainGroup; // A list of scripts watched by this wallet. - @GuardedBy("keychainLock") private Set