From fe7b7032371d8b6c1c8b870d0e4aa9508aa9bbd4 Mon Sep 17 00:00:00 2001 From: Oscar Guindzberg Date: Tue, 11 Aug 2015 13:20:30 -0300 Subject: [PATCH] Wallet: Rename attribute "keychain" to "keyChainGroup". --- .../main/java/org/bitcoinj/core/Wallet.java | 358 +++++++++--------- .../store/WalletProtobufSerializer.java | 10 +- ...ilteredBlockAndPartialMerkleTreeTests.java | 2 +- .../java/org/bitcoinj/core/PeerGroupTest.java | 14 +- .../store/WalletProtobufSerializerTest.java | 2 +- .../java/org/bitcoinj/tools/WalletTool.java | 2 +- 6 files changed, 194 insertions(+), 194 deletions(-) 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