From bcc8055b7e2f8196014f50fe6b0e1e40ca80d81d Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Tue, 22 Apr 2014 23:06:32 +0200 Subject: [PATCH] Wallet: expose tx broadcaster to subclasses. --- core/src/main/java/com/google/bitcoin/core/Wallet.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/com/google/bitcoin/core/Wallet.java b/core/src/main/java/com/google/bitcoin/core/Wallet.java index 489eb59d..93df4387 100644 --- a/core/src/main/java/com/google/bitcoin/core/Wallet.java +++ b/core/src/main/java/com/google/bitcoin/core/Wallet.java @@ -162,15 +162,15 @@ public class Wallet implements Serializable, BlockChainListener, PeerFilterProvi private int onWalletChangedSuppressions; private boolean insideReorg; private Map confidenceChanged; - private volatile WalletFiles vFileManager; + protected volatile WalletFiles vFileManager; // Object that is used to send transactions asynchronously when the wallet requires it. - private volatile TransactionBroadcaster vTransactionBroadcaster; + protected volatile TransactionBroadcaster vTransactionBroadcaster; // UNIX time in seconds. Money controlled by keys created before this time will be automatically respent to a key // that was created after it. Useful when you believe some keys have been compromised. private volatile long vKeyRotationTimestamp; private volatile boolean vKeyRotationEnabled; - private transient CoinSelector coinSelector = new DefaultCoinSelector(); + protected transient CoinSelector coinSelector = new DefaultCoinSelector(); // The keyCrypter for the wallet. This specifies the algorithm used for encrypting and decrypting the private keys. private KeyCrypter keyCrypter;