test_class.declarator: log = LoggerFactory.getLogger(WalletTest.class)
test_class.modifier: private static final
test_class.original_string: private static final Logger log = LoggerFactory.getLogger(WalletTest.class);
test_class.type: Logger
test_class.var_name: log
test_class.declarator: myEncryptedAddress
test_class.modifier: private
test_class.original_string: private Address myEncryptedAddress;
test_class.type: Address
test_class.var_name: myEncryptedAddress
test_class.declarator: myEncryptedAddress2
test_class.modifier: private
test_class.original_string: private Address myEncryptedAddress2;
test_class.type: Address
test_class.var_name: myEncryptedAddress2
test_class.declarator: encryptedWallet
test_class.modifier: private
test_class.original_string: private Wallet encryptedWallet;
test_class.type: Wallet
test_class.var_name: encryptedWallet
test_class.declarator: PASSWORD1 = "my helicopter contains eels"
test_class.modifier: private static
test_class.original_string: private static CharSequence PASSWORD1 = "my helicopter contains eels";
test_class.type: CharSequence
test_class.var_name: PASSWORD1
test_class.declarator: WRONG_PASSWORD = "nothing noone nobody nowhere"
test_class.modifier: private static
test_class.original_string: private static CharSequence WRONG_PASSWORD = "nothing noone nobody nowhere";
test_class.type: CharSequence
test_class.var_name: WRONG_PASSWORD
test_class.declarator: aesKey
test_class.modifier: private
test_class.original_string: private KeyParameter aesKey;
test_class.type: KeyParameter
test_class.var_name: aesKey
test_class.declarator: wrongAesKey
test_class.modifier: private
test_class.original_string: private KeyParameter wrongAesKey;
test_class.type: KeyParameter
test_class.var_name: wrongAesKey
test_class.declarator: keyCrypter
test_class.modifier: private
test_class.original_string: private KeyCrypter keyCrypter;
test_class.type: KeyCrypter
test_class.var_name: keyCrypter
test_class.declarator: secureRandom = new SecureRandom()
test_class.modifier: private
test_class.original_string: private SecureRandom secureRandom = new SecureRandom();
test_class.type: SecureRandom
test_class.var_name: secureRandom
test_class.file: core/src/test/java/com/google/bitcoin/core/WalletTest.java
test_class.identifier: WalletTest
test_class.superclass: extends TestWithWallet
test_case.body: @Test(expected = IllegalArgumentException.class)
      public void respectMaxStandardSize() throws Exception {
          // Check that we won't create txns > 100kb. Average tx size is ~220 bytes so this would have to be enormous.
          sendMoneyToWallet(Utils.toNanoCoins(100, 0), AbstractBlockChain.NewBlockType.BEST_CHAIN);
          Transaction tx = new Transaction(params);
          byte[] bits = new byte[20];
          new Random().nextBytes(bits);
          BigInteger v = Utils.toNanoCoins(0, 1);
          // 3100 outputs to a random address.
          for (int i = 0; i < 3100; i++) {
              tx.addOutput(v, new Address(params, bits));
          }
          Wallet.SendRequest req = Wallet.SendRequest.forTx(tx);
          wallet.completeTx(req);
      }
test_case.class_method_signature: WalletTest.respectMaxStandardSize()
test_case.full_signature: @Test(expected = IllegalArgumentException.class) public void respectMaxStandardSize()
test_case.identifier: respectMaxStandardSize
test_case.invocations: sendMoneyToWallet toNanoCoins nextBytes toNanoCoins addOutput forTx completeTx
test_case.modifiers: @Test(expected = IllegalArgumentException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void respectMaxStandardSize()
focal_class.declarator: log = LoggerFactory.getLogger(Wallet.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory.getLogger(Wallet.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: serialVersionUID = 2L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = 2L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: MINIMUM_BLOOM_DATA_LENGTH = 8
focal_class.modifier: private static final
focal_class.original_string: private static final int MINIMUM_BLOOM_DATA_LENGTH = 8;
focal_class.type: int
focal_class.var_name: MINIMUM_BLOOM_DATA_LENGTH
focal_class.declarator: lock = Threading.lock("wallet")
focal_class.modifier: protected final
focal_class.original_string: protected final ReentrantLock lock = Threading.lock("wallet");
focal_class.type: ReentrantLock
focal_class.var_name: lock
focal_class.declarator: pending
focal_class.modifier: final
focal_class.original_string: final Map<Sha256Hash, Transaction> pending;
focal_class.type: Map<Sha256Hash, Transaction>
focal_class.var_name: pending
focal_class.declarator: unspent
focal_class.modifier: final
focal_class.original_string: final Map<Sha256Hash, Transaction> unspent;
focal_class.type: Map<Sha256Hash, Transaction>
focal_class.var_name: unspent
focal_class.declarator: spent
focal_class.modifier: final
focal_class.original_string: final Map<Sha256Hash, Transaction> spent;
focal_class.type: Map<Sha256Hash, Transaction>
focal_class.var_name: spent
focal_class.declarator: dead
focal_class.modifier: final
focal_class.original_string: final Map<Sha256Hash, Transaction> dead;
focal_class.type: Map<Sha256Hash, Transaction>
focal_class.var_name: dead
focal_class.declarator: transactions
focal_class.modifier: final
focal_class.original_string: final Map<Sha256Hash, Transaction> transactions;
focal_class.type: Map<Sha256Hash, Transaction>
focal_class.var_name: transactions
focal_class.declarator: keychain
focal_class.modifier: private
focal_class.original_string: private ArrayList<ECKey> keychain;
focal_class.type: ArrayList<ECKey>
focal_class.var_name: keychain
focal_class.declarator: watchedScripts
focal_class.modifier: private
focal_class.original_string: private Set<Script> watchedScripts;
focal_class.type: Set<Script>
focal_class.var_name: watchedScripts
focal_class.declarator: params
focal_class.modifier: private final
focal_class.original_string: private final NetworkParameters params;
focal_class.type: NetworkParameters
focal_class.var_name: params
focal_class.declarator: lastBlockSeenHash
focal_class.modifier: @Nullable private
focal_class.original_string: @Nullable private Sha256Hash lastBlockSeenHash;
focal_class.type: Sha256Hash
focal_class.var_name: lastBlockSeenHash
focal_class.declarator: lastBlockSeenHeight
focal_class.modifier: private
focal_class.original_string: private int lastBlockSeenHeight;
focal_class.type: int
focal_class.var_name: lastBlockSeenHeight
focal_class.declarator: lastBlockSeenTimeSecs
focal_class.modifier: private
focal_class.original_string: private long lastBlockSeenTimeSecs;
focal_class.type: long
focal_class.var_name: lastBlockSeenTimeSecs
focal_class.declarator: eventListeners
focal_class.modifier: private transient
focal_class.original_string: private transient CopyOnWriteArrayList<ListenerRegistration<WalletEventListener>> eventListeners;
focal_class.type: CopyOnWriteArrayList<ListenerRegistration<WalletEventListener>>
focal_class.var_name: eventListeners
focal_class.declarator: txConfidenceListener
focal_class.modifier: private transient
focal_class.original_string: private transient TransactionConfidence.Listener txConfidenceListener;
focal_class.type: TransactionConfidence.Listener
focal_class.var_name: txConfidenceListener
focal_class.declarator: ignoreNextNewBlock
focal_class.modifier: private transient
focal_class.original_string: private transient HashSet<Sha256Hash> ignoreNextNewBlock;
focal_class.type: HashSet<Sha256Hash>
focal_class.var_name: ignoreNextNewBlock
focal_class.declarator: acceptRiskyTransactions
focal_class.modifier: private
focal_class.original_string: private boolean acceptRiskyTransactions;
focal_class.type: boolean
focal_class.var_name: acceptRiskyTransactions
focal_class.declarator: onWalletChangedSuppressions
focal_class.modifier: private
focal_class.original_string: private int onWalletChangedSuppressions;
focal_class.type: int
focal_class.var_name: onWalletChangedSuppressions
focal_class.declarator: insideReorg
focal_class.modifier: private
focal_class.original_string: private boolean insideReorg;
focal_class.type: boolean
focal_class.var_name: insideReorg
focal_class.declarator: confidenceChanged
focal_class.modifier: private
focal_class.original_string: private Map<Transaction, TransactionConfidence.Listener.ChangeReason> confidenceChanged;
focal_class.type: Map<Transaction, TransactionConfidence.Listener.ChangeReason>
focal_class.var_name: confidenceChanged
focal_class.declarator: vFileManager
focal_class.modifier: private volatile
focal_class.original_string: private volatile WalletFiles vFileManager;
focal_class.type: WalletFiles
focal_class.var_name: vFileManager
focal_class.declarator: vTransactionBroadcaster
focal_class.modifier: private volatile
focal_class.original_string: private volatile TransactionBroadcaster vTransactionBroadcaster;
focal_class.type: TransactionBroadcaster
focal_class.var_name: vTransactionBroadcaster
focal_class.declarator: vKeyRotationTimestamp
focal_class.modifier: private volatile
focal_class.original_string: private volatile long vKeyRotationTimestamp;
focal_class.type: long
focal_class.var_name: vKeyRotationTimestamp
focal_class.declarator: vKeyRotationEnabled
focal_class.modifier: private volatile
focal_class.original_string: private volatile boolean vKeyRotationEnabled;
focal_class.type: boolean
focal_class.var_name: vKeyRotationEnabled
focal_class.declarator: coinSelector = new DefaultCoinSelector()
focal_class.modifier: private transient
focal_class.original_string: private transient CoinSelector coinSelector = new DefaultCoinSelector();
focal_class.type: CoinSelector
focal_class.var_name: coinSelector
focal_class.declarator: keyCrypter
focal_class.modifier: private
focal_class.original_string: private KeyCrypter keyCrypter;
focal_class.type: KeyCrypter
focal_class.var_name: keyCrypter
focal_class.declarator: version
focal_class.modifier: private
focal_class.original_string: private int version;
focal_class.type: int
focal_class.var_name: version
focal_class.declarator: description
focal_class.modifier: private
focal_class.original_string: private String description;
focal_class.type: String
focal_class.var_name: description
focal_class.declarator: extensions
focal_class.modifier: private final
focal_class.original_string: private final HashMap<String, WalletExtension> extensions;
focal_class.type: HashMap<String, WalletExtension>
focal_class.var_name: extensions
focal_class.declarator: riskAnalyzer = DefaultRiskAnalysis.FACTORY
focal_class.modifier: private
focal_class.original_string: private RiskAnalysis.Analyzer riskAnalyzer = DefaultRiskAnalysis.FACTORY;
focal_class.type: RiskAnalysis.Analyzer
focal_class.var_name: riskAnalyzer
focal_class.declarator: balanceFutureRequests = Lists.newLinkedList()
focal_class.modifier: @GuardedBy("lock") private
focal_class.original_string: @GuardedBy("lock") private List<BalanceFutureRequest> balanceFutureRequests = Lists.newLinkedList();
focal_class.type: List<BalanceFutureRequest>
focal_class.var_name: balanceFutureRequests
focal_class.file: core/src/main/java/com/google/bitcoin/core/Wallet.java
focal_class.identifier: Wallet
focal_class.interfaces: implements Serializable, BlockChainListener, PeerFilterProvider
focal_class.class_method_signature: Wallet.Wallet(NetworkParameters params)
focal_class.full_signature: public  Wallet(NetworkParameters params)
focal_class.identifier: Wallet
focal_class.modifiers: public
focal_class.parameters: (NetworkParameters params)
focal_class.signature:  Wallet(NetworkParameters params)
focal_class.class_method_signature: Wallet.Wallet(NetworkParameters params, KeyCrypter keyCrypter)
focal_class.full_signature: public  Wallet(NetworkParameters params, KeyCrypter keyCrypter)
focal_class.identifier: Wallet
focal_class.modifiers: public
focal_class.parameters: (NetworkParameters params, KeyCrypter keyCrypter)
focal_class.signature:  Wallet(NetworkParameters params, KeyCrypter keyCrypter)
focal_class.class_method_signature: Wallet.createTransientState()
focal_class.full_signature: private void createTransientState()
focal_class.identifier: createTransientState
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void createTransientState()
focal_class.class_method_signature: Wallet.getNetworkParameters()
focal_class.full_signature: public NetworkParameters getNetworkParameters()
focal_class.identifier: getNetworkParameters
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: NetworkParameters
focal_class.signature: NetworkParameters getNetworkParameters()
focal_class.class_method_signature: Wallet.getKeys()
focal_class.full_signature: public List<ECKey> getKeys()
focal_class.identifier: getKeys
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<ECKey>
focal_class.signature: List<ECKey> getKeys()
focal_class.class_method_signature: Wallet.getWatchedScripts()
focal_class.full_signature: public List<Script> getWatchedScripts()
focal_class.identifier: getWatchedScripts
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<Script>
focal_class.signature: List<Script> getWatchedScripts()
focal_class.class_method_signature: Wallet.removeKey(ECKey key)
focal_class.full_signature: public boolean removeKey(ECKey key)
focal_class.identifier: removeKey
focal_class.modifiers: public
focal_class.parameters: (ECKey key)
focal_class.return: boolean
focal_class.signature: boolean removeKey(ECKey key)
focal_class.class_method_signature: Wallet.getKeychainSize()
focal_class.full_signature: public int getKeychainSize()
focal_class.identifier: getKeychainSize
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getKeychainSize()
focal_class.class_method_signature: Wallet.saveToFile(File temp, File destFile)
focal_class.full_signature: public void saveToFile(File temp, File destFile)
focal_class.identifier: saveToFile
focal_class.modifiers: public
focal_class.parameters: (File temp, File destFile)
focal_class.return: void
focal_class.signature: void saveToFile(File temp, File destFile)
focal_class.class_method_signature: Wallet.saveToFile(File f)
focal_class.full_signature: public void saveToFile(File f)
focal_class.identifier: saveToFile
focal_class.modifiers: public
focal_class.parameters: (File f)
focal_class.return: void
focal_class.signature: void saveToFile(File f)
focal_class.class_method_signature: Wallet.setAcceptRiskyTransactions(boolean acceptRiskyTransactions)
focal_class.full_signature: public void setAcceptRiskyTransactions(boolean acceptRiskyTransactions)
focal_class.identifier: setAcceptRiskyTransactions
focal_class.modifiers: public
focal_class.parameters: (boolean acceptRiskyTransactions)
focal_class.return: void
focal_class.signature: void setAcceptRiskyTransactions(boolean acceptRiskyTransactions)
focal_class.class_method_signature: Wallet.doesAcceptRiskyTransactions()
focal_class.full_signature: public boolean doesAcceptRiskyTransactions()
focal_class.identifier: doesAcceptRiskyTransactions
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean doesAcceptRiskyTransactions()
focal_class.class_method_signature: Wallet.setRiskAnalyzer(RiskAnalysis.Analyzer analyzer)
focal_class.full_signature: public void setRiskAnalyzer(RiskAnalysis.Analyzer analyzer)
focal_class.identifier: setRiskAnalyzer
focal_class.modifiers: public
focal_class.parameters: (RiskAnalysis.Analyzer analyzer)
focal_class.return: void
focal_class.signature: void setRiskAnalyzer(RiskAnalysis.Analyzer analyzer)
focal_class.class_method_signature: Wallet.getRiskAnalyzer()
focal_class.full_signature: public RiskAnalysis.Analyzer getRiskAnalyzer()
focal_class.identifier: getRiskAnalyzer
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: RiskAnalysis.Analyzer
focal_class.signature: RiskAnalysis.Analyzer getRiskAnalyzer()
focal_class.class_method_signature: Wallet.autosaveToFile(File f, long delayTime, TimeUnit timeUnit,
                                        @Nullable WalletFiles.Listener eventListener)
focal_class.full_signature: public WalletFiles autosaveToFile(File f, long delayTime, TimeUnit timeUnit,
                                        @Nullable WalletFiles.Listener eventListener)
focal_class.identifier: autosaveToFile
focal_class.modifiers: public
focal_class.parameters: (File f, long delayTime, TimeUnit timeUnit,
                                        @Nullable WalletFiles.Listener eventListener)
focal_class.return: WalletFiles
focal_class.signature: WalletFiles autosaveToFile(File f, long delayTime, TimeUnit timeUnit,
                                        @Nullable WalletFiles.Listener eventListener)
focal_class.class_method_signature: Wallet.saveLater()
focal_class.full_signature: private void saveLater()
focal_class.identifier: saveLater
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void saveLater()
focal_class.class_method_signature: Wallet.saveNow()
focal_class.full_signature: private void saveNow()
focal_class.identifier: saveNow
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void saveNow()
focal_class.class_method_signature: Wallet.saveToFileStream(OutputStream f)
focal_class.full_signature: public void saveToFileStream(OutputStream f)
focal_class.identifier: saveToFileStream
focal_class.modifiers: public
focal_class.parameters: (OutputStream f)
focal_class.return: void
focal_class.signature: void saveToFileStream(OutputStream f)
focal_class.class_method_signature: Wallet.getParams()
focal_class.full_signature: public NetworkParameters getParams()
focal_class.identifier: getParams
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: NetworkParameters
focal_class.signature: NetworkParameters getParams()
focal_class.class_method_signature: Wallet.loadFromFile(File f)
focal_class.full_signature: public static Wallet loadFromFile(File f)
focal_class.identifier: loadFromFile
focal_class.modifiers: public static
focal_class.parameters: (File f)
focal_class.return: Wallet
focal_class.signature: Wallet loadFromFile(File f)
focal_class.class_method_signature: Wallet.isConsistent()
focal_class.full_signature: public boolean isConsistent()
focal_class.identifier: isConsistent
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isConsistent()
focal_class.class_method_signature: Wallet.loadFromFileStream(InputStream stream)
focal_class.full_signature: public static Wallet loadFromFileStream(InputStream stream)
focal_class.identifier: loadFromFileStream
focal_class.modifiers: public static
focal_class.parameters: (InputStream stream)
focal_class.return: Wallet
focal_class.signature: Wallet loadFromFileStream(InputStream stream)
focal_class.class_method_signature: Wallet.readObject(ObjectInputStream in)
focal_class.full_signature: private void readObject(ObjectInputStream in)
focal_class.identifier: readObject
focal_class.modifiers: private
focal_class.parameters: (ObjectInputStream in)
focal_class.return: void
focal_class.signature: void readObject(ObjectInputStream in)
focal_class.class_method_signature: Wallet.notifyTransactionIsInBlock(Sha256Hash txHash, StoredBlock block,
                                             BlockChain.NewBlockType blockType,
                                             int relativityOffset)
focal_class.full_signature: public void notifyTransactionIsInBlock(Sha256Hash txHash, StoredBlock block,
                                             BlockChain.NewBlockType blockType,
                                             int relativityOffset)
focal_class.identifier: notifyTransactionIsInBlock
focal_class.modifiers: public
focal_class.parameters: (Sha256Hash txHash, StoredBlock block,
                                             BlockChain.NewBlockType blockType,
                                             int relativityOffset)
focal_class.return: void
focal_class.signature: void notifyTransactionIsInBlock(Sha256Hash txHash, StoredBlock block,
                                             BlockChain.NewBlockType blockType,
                                             int relativityOffset)
focal_class.class_method_signature: Wallet.receivePending(Transaction tx, @Nullable List<Transaction> dependencies, boolean overrideIsRelevant)
focal_class.full_signature: public void receivePending(Transaction tx, @Nullable List<Transaction> dependencies, boolean overrideIsRelevant)
focal_class.identifier: receivePending
focal_class.modifiers: public
focal_class.parameters: (Transaction tx, @Nullable List<Transaction> dependencies, boolean overrideIsRelevant)
focal_class.return: void
focal_class.signature: void receivePending(Transaction tx, @Nullable List<Transaction> dependencies, boolean overrideIsRelevant)
focal_class.class_method_signature: Wallet.isTransactionRisky(Transaction tx, @Nullable List<Transaction> dependencies)
focal_class.full_signature: public boolean isTransactionRisky(Transaction tx, @Nullable List<Transaction> dependencies)
focal_class.identifier: isTransactionRisky
focal_class.modifiers: public
focal_class.parameters: (Transaction tx, @Nullable List<Transaction> dependencies)
focal_class.return: boolean
focal_class.signature: boolean isTransactionRisky(Transaction tx, @Nullable List<Transaction> dependencies)
focal_class.class_method_signature: Wallet.receivePending(Transaction tx, @Nullable List<Transaction> dependencies)
focal_class.full_signature: public void receivePending(Transaction tx, @Nullable List<Transaction> dependencies)
focal_class.identifier: receivePending
focal_class.modifiers: public
focal_class.parameters: (Transaction tx, @Nullable List<Transaction> dependencies)
focal_class.return: void
focal_class.signature: void receivePending(Transaction tx, @Nullable List<Transaction> dependencies)
focal_class.class_method_signature: Wallet.isPendingTransactionRelevant(Transaction tx)
focal_class.full_signature: public boolean isPendingTransactionRelevant(Transaction tx)
focal_class.identifier: isPendingTransactionRelevant
focal_class.modifiers: public
focal_class.parameters: (Transaction tx)
focal_class.return: boolean
focal_class.signature: boolean isPendingTransactionRelevant(Transaction tx)
focal_class.class_method_signature: Wallet.isTransactionRelevant(Transaction tx)
focal_class.full_signature: public boolean isTransactionRelevant(Transaction tx)
focal_class.identifier: isTransactionRelevant
focal_class.modifiers: public
focal_class.parameters: (Transaction tx)
focal_class.return: boolean
focal_class.signature: boolean isTransactionRelevant(Transaction tx)
focal_class.class_method_signature: Wallet.checkForDoubleSpendAgainstPending(Transaction tx, boolean takeAction)
focal_class.full_signature: private boolean checkForDoubleSpendAgainstPending(Transaction tx, boolean takeAction)
focal_class.identifier: checkForDoubleSpendAgainstPending
focal_class.modifiers: private
focal_class.parameters: (Transaction tx, boolean takeAction)
focal_class.return: boolean
focal_class.signature: boolean checkForDoubleSpendAgainstPending(Transaction tx, boolean takeAction)
focal_class.class_method_signature: Wallet.receiveFromBlock(Transaction tx, StoredBlock block,
                                   BlockChain.NewBlockType blockType,
                                   int relativityOffset)
focal_class.full_signature: @Override public void receiveFromBlock(Transaction tx, StoredBlock block,
                                   BlockChain.NewBlockType blockType,
                                   int relativityOffset)
focal_class.identifier: receiveFromBlock
focal_class.modifiers: @Override public
focal_class.parameters: (Transaction tx, StoredBlock block,
                                   BlockChain.NewBlockType blockType,
                                   int relativityOffset)
focal_class.return: void
focal_class.signature: void receiveFromBlock(Transaction tx, StoredBlock block,
                                   BlockChain.NewBlockType blockType,
                                   int relativityOffset)
focal_class.class_method_signature: Wallet.receive(Transaction tx, StoredBlock block, BlockChain.NewBlockType blockType,
                           int relativityOffset)
focal_class.full_signature: private void receive(Transaction tx, StoredBlock block, BlockChain.NewBlockType blockType,
                           int relativityOffset)
focal_class.identifier: receive
focal_class.modifiers: private
focal_class.parameters: (Transaction tx, StoredBlock block, BlockChain.NewBlockType blockType,
                           int relativityOffset)
focal_class.return: void
focal_class.signature: void receive(Transaction tx, StoredBlock block, BlockChain.NewBlockType blockType,
                           int relativityOffset)
focal_class.class_method_signature: Wallet.informConfidenceListenersIfNotReorganizing()
focal_class.full_signature: private void informConfidenceListenersIfNotReorganizing()
focal_class.identifier: informConfidenceListenersIfNotReorganizing
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void informConfidenceListenersIfNotReorganizing()
focal_class.class_method_signature: Wallet.notifyNewBestBlock(StoredBlock block)
focal_class.full_signature: public void notifyNewBestBlock(StoredBlock block)
focal_class.identifier: notifyNewBestBlock
focal_class.modifiers: public
focal_class.parameters: (StoredBlock block)
focal_class.return: void
focal_class.signature: void notifyNewBestBlock(StoredBlock block)
focal_class.class_method_signature: Wallet.processTxFromBestChain(Transaction tx, boolean forceAddToPool)
focal_class.full_signature: private void processTxFromBestChain(Transaction tx, boolean forceAddToPool)
focal_class.identifier: processTxFromBestChain
focal_class.modifiers: private
focal_class.parameters: (Transaction tx, boolean forceAddToPool)
focal_class.return: void
focal_class.signature: void processTxFromBestChain(Transaction tx, boolean forceAddToPool)
focal_class.class_method_signature: Wallet.updateForSpends(Transaction tx, boolean fromChain)
focal_class.full_signature: private void updateForSpends(Transaction tx, boolean fromChain)
focal_class.identifier: updateForSpends
focal_class.modifiers: private
focal_class.parameters: (Transaction tx, boolean fromChain)
focal_class.return: void
focal_class.signature: void updateForSpends(Transaction tx, boolean fromChain)
focal_class.class_method_signature: Wallet.killTx(@Nullable Transaction overridingTx, List<Transaction> killedTx)
focal_class.full_signature: private void killTx(@Nullable Transaction overridingTx, List<Transaction> killedTx)
focal_class.identifier: killTx
focal_class.modifiers: private
focal_class.parameters: (@Nullable Transaction overridingTx, List<Transaction> killedTx)
focal_class.return: void
focal_class.signature: void killTx(@Nullable Transaction overridingTx, List<Transaction> killedTx)
focal_class.class_method_signature: Wallet.maybeMovePool(Transaction tx, String context)
focal_class.full_signature: private void maybeMovePool(Transaction tx, String context)
focal_class.identifier: maybeMovePool
focal_class.modifiers: private
focal_class.parameters: (Transaction tx, String context)
focal_class.return: void
focal_class.signature: void maybeMovePool(Transaction tx, String context)
focal_class.class_method_signature: Wallet.addEventListener(WalletEventListener listener)
focal_class.full_signature: public void addEventListener(WalletEventListener listener)
focal_class.identifier: addEventListener
focal_class.modifiers: public
focal_class.parameters: (WalletEventListener listener)
focal_class.return: void
focal_class.signature: void addEventListener(WalletEventListener listener)
focal_class.class_method_signature: Wallet.addEventListener(WalletEventListener listener, Executor executor)
focal_class.full_signature: public void addEventListener(WalletEventListener listener, Executor executor)
focal_class.identifier: addEventListener
focal_class.modifiers: public
focal_class.parameters: (WalletEventListener listener, Executor executor)
focal_class.return: void
focal_class.signature: void addEventListener(WalletEventListener listener, Executor executor)
focal_class.class_method_signature: Wallet.removeEventListener(WalletEventListener listener)
focal_class.full_signature: public boolean removeEventListener(WalletEventListener listener)
focal_class.identifier: removeEventListener
focal_class.modifiers: public
focal_class.parameters: (WalletEventListener listener)
focal_class.return: boolean
focal_class.signature: boolean removeEventListener(WalletEventListener listener)
focal_class.class_method_signature: Wallet.maybeCommitTx(Transaction tx)
focal_class.full_signature: public boolean maybeCommitTx(Transaction tx)
focal_class.identifier: maybeCommitTx
focal_class.modifiers: public
focal_class.parameters: (Transaction tx)
focal_class.return: boolean
focal_class.signature: boolean maybeCommitTx(Transaction tx)
focal_class.class_method_signature: Wallet.commitTx(Transaction tx)
focal_class.full_signature: public void commitTx(Transaction tx)
focal_class.identifier: commitTx
focal_class.modifiers: public
focal_class.parameters: (Transaction tx)
focal_class.return: void
focal_class.signature: void commitTx(Transaction tx)
focal_class.class_method_signature: Wallet.getTransactions(boolean includeDead)
focal_class.full_signature: public Set<Transaction> getTransactions(boolean includeDead)
focal_class.identifier: getTransactions
focal_class.modifiers: public
focal_class.parameters: (boolean includeDead)
focal_class.return: Set<Transaction>
focal_class.signature: Set<Transaction> getTransactions(boolean includeDead)
focal_class.class_method_signature: Wallet.getWalletTransactions()
focal_class.full_signature: public Iterable<WalletTransaction> getWalletTransactions()
focal_class.identifier: getWalletTransactions
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Iterable<WalletTransaction>
focal_class.signature: Iterable<WalletTransaction> getWalletTransactions()
focal_class.class_method_signature: Wallet.addWalletTransactionsToSet(Set<WalletTransaction> txs,
                                                     Pool poolType, Collection<Transaction> pool)
focal_class.full_signature: private static void addWalletTransactionsToSet(Set<WalletTransaction> txs,
                                                     Pool poolType, Collection<Transaction> pool)
focal_class.identifier: addWalletTransactionsToSet
focal_class.modifiers: private static
focal_class.parameters: (Set<WalletTransaction> txs,
                                                     Pool poolType, Collection<Transaction> pool)
focal_class.return: void
focal_class.signature: void addWalletTransactionsToSet(Set<WalletTransaction> txs,
                                                     Pool poolType, Collection<Transaction> pool)
focal_class.class_method_signature: Wallet.addWalletTransaction(WalletTransaction wtx)
focal_class.full_signature: public void addWalletTransaction(WalletTransaction wtx)
focal_class.identifier: addWalletTransaction
focal_class.modifiers: public
focal_class.parameters: (WalletTransaction wtx)
focal_class.return: void
focal_class.signature: void addWalletTransaction(WalletTransaction wtx)
focal_class.class_method_signature: Wallet.addWalletTransaction(Pool pool, Transaction tx)
focal_class.full_signature: private void addWalletTransaction(Pool pool, Transaction tx)
focal_class.identifier: addWalletTransaction
focal_class.modifiers: private
focal_class.parameters: (Pool pool, Transaction tx)
focal_class.return: void
focal_class.signature: void addWalletTransaction(Pool pool, Transaction tx)
focal_class.class_method_signature: Wallet.getTransactionsByTime()
focal_class.full_signature: public List<Transaction> getTransactionsByTime()
focal_class.identifier: getTransactionsByTime
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<Transaction>
focal_class.signature: List<Transaction> getTransactionsByTime()
focal_class.class_method_signature: Wallet.getRecentTransactions(int numTransactions, boolean includeDead)
focal_class.full_signature: public List<Transaction> getRecentTransactions(int numTransactions, boolean includeDead)
focal_class.identifier: getRecentTransactions
focal_class.modifiers: public
focal_class.parameters: (int numTransactions, boolean includeDead)
focal_class.return: List<Transaction>
focal_class.signature: List<Transaction> getRecentTransactions(int numTransactions, boolean includeDead)
focal_class.class_method_signature: Wallet.getTransaction(Sha256Hash hash)
focal_class.full_signature: @Nullable public Transaction getTransaction(Sha256Hash hash)
focal_class.identifier: getTransaction
focal_class.modifiers: @Nullable public
focal_class.parameters: (Sha256Hash hash)
focal_class.return: Transaction
focal_class.signature: Transaction getTransaction(Sha256Hash hash)
focal_class.class_method_signature: Wallet.clearTransactions(int fromHeight)
focal_class.full_signature: public void clearTransactions(int fromHeight)
focal_class.identifier: clearTransactions
focal_class.modifiers: public
focal_class.parameters: (int fromHeight)
focal_class.return: void
focal_class.signature: void clearTransactions(int fromHeight)
focal_class.class_method_signature: Wallet.cleanup()
focal_class.full_signature: public void cleanup()
focal_class.identifier: cleanup
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void cleanup()
focal_class.class_method_signature: Wallet.getContainingPools(Transaction tx)
focal_class.full_signature:  EnumSet<Pool> getContainingPools(Transaction tx)
focal_class.identifier: getContainingPools
focal_class.parameters: (Transaction tx)
focal_class.return: EnumSet<Pool>
focal_class.signature: EnumSet<Pool> getContainingPools(Transaction tx)
focal_class.class_method_signature: Wallet.getPoolSize(WalletTransaction.Pool pool)
focal_class.full_signature:  int getPoolSize(WalletTransaction.Pool pool)
focal_class.identifier: getPoolSize
focal_class.parameters: (WalletTransaction.Pool pool)
focal_class.return: int
focal_class.signature: int getPoolSize(WalletTransaction.Pool pool)
focal_class.class_method_signature: Wallet.createSend(Address address, BigInteger nanocoins)
focal_class.full_signature: public Transaction createSend(Address address, BigInteger nanocoins)
focal_class.identifier: createSend
focal_class.modifiers: public
focal_class.parameters: (Address address, BigInteger nanocoins)
focal_class.return: Transaction
focal_class.signature: Transaction createSend(Address address, BigInteger nanocoins)
focal_class.class_method_signature: Wallet.sendCoinsOffline(SendRequest request)
focal_class.full_signature: public Transaction sendCoinsOffline(SendRequest request)
focal_class.identifier: sendCoinsOffline
focal_class.modifiers: public
focal_class.parameters: (SendRequest request)
focal_class.return: Transaction
focal_class.signature: Transaction sendCoinsOffline(SendRequest request)
focal_class.class_method_signature: Wallet.sendCoins(TransactionBroadcaster broadcaster, Address to, BigInteger value)
focal_class.full_signature: public SendResult sendCoins(TransactionBroadcaster broadcaster, Address to, BigInteger value)
focal_class.identifier: sendCoins
focal_class.modifiers: public
focal_class.parameters: (TransactionBroadcaster broadcaster, Address to, BigInteger value)
focal_class.return: SendResult
focal_class.signature: SendResult sendCoins(TransactionBroadcaster broadcaster, Address to, BigInteger value)
focal_class.class_method_signature: Wallet.sendCoins(TransactionBroadcaster broadcaster, SendRequest request)
focal_class.full_signature: public SendResult sendCoins(TransactionBroadcaster broadcaster, SendRequest request)
focal_class.identifier: sendCoins
focal_class.modifiers: public
focal_class.parameters: (TransactionBroadcaster broadcaster, SendRequest request)
focal_class.return: SendResult
focal_class.signature: SendResult sendCoins(TransactionBroadcaster broadcaster, SendRequest request)
focal_class.class_method_signature: Wallet.sendCoins(SendRequest request)
focal_class.full_signature: public SendResult sendCoins(SendRequest request)
focal_class.identifier: sendCoins
focal_class.modifiers: public
focal_class.parameters: (SendRequest request)
focal_class.return: SendResult
focal_class.signature: SendResult sendCoins(SendRequest request)
focal_class.class_method_signature: Wallet.sendCoins(Peer peer, SendRequest request)
focal_class.full_signature: public Transaction sendCoins(Peer peer, SendRequest request)
focal_class.identifier: sendCoins
focal_class.modifiers: public
focal_class.parameters: (Peer peer, SendRequest request)
focal_class.return: Transaction
focal_class.signature: Transaction sendCoins(Peer peer, SendRequest request)
focal_class.class_method_signature: Wallet.completeTx(SendRequest req)
focal_class.full_signature: public void completeTx(SendRequest req)
focal_class.identifier: completeTx
focal_class.modifiers: public
focal_class.parameters: (SendRequest req)
focal_class.return: void
focal_class.signature: void completeTx(SendRequest req)
focal_class.class_method_signature: Wallet.adjustOutputDownwardsForFee(Transaction tx, CoinSelection coinSelection, BigInteger baseFee, BigInteger feePerKb)
focal_class.full_signature: private boolean adjustOutputDownwardsForFee(Transaction tx, CoinSelection coinSelection, BigInteger baseFee, BigInteger feePerKb)
focal_class.identifier: adjustOutputDownwardsForFee
focal_class.modifiers: private
focal_class.parameters: (Transaction tx, CoinSelection coinSelection, BigInteger baseFee, BigInteger feePerKb)
focal_class.return: boolean
focal_class.signature: boolean adjustOutputDownwardsForFee(Transaction tx, CoinSelection coinSelection, BigInteger baseFee, BigInteger feePerKb)
focal_class.class_method_signature: Wallet.calculateAllSpendCandidates(boolean excludeImmatureCoinbases)
focal_class.full_signature: public LinkedList<TransactionOutput> calculateAllSpendCandidates(boolean excludeImmatureCoinbases)
focal_class.identifier: calculateAllSpendCandidates
focal_class.modifiers: public
focal_class.parameters: (boolean excludeImmatureCoinbases)
focal_class.return: LinkedList<TransactionOutput>
focal_class.signature: LinkedList<TransactionOutput> calculateAllSpendCandidates(boolean excludeImmatureCoinbases)
focal_class.class_method_signature: Wallet.getWatchedOutputs(boolean excludeImmatureCoinbases)
focal_class.full_signature: public LinkedList<TransactionOutput> getWatchedOutputs(boolean excludeImmatureCoinbases)
focal_class.identifier: getWatchedOutputs
focal_class.modifiers: public
focal_class.parameters: (boolean excludeImmatureCoinbases)
focal_class.return: LinkedList<TransactionOutput>
focal_class.signature: LinkedList<TransactionOutput> getWatchedOutputs(boolean excludeImmatureCoinbases)
focal_class.class_method_signature: Wallet.getChangeAddress()
focal_class.full_signature: public Address getChangeAddress()
focal_class.identifier: getChangeAddress
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Address
focal_class.signature: Address getChangeAddress()
focal_class.class_method_signature: Wallet.addKey(final ECKey key)
focal_class.full_signature: public boolean addKey(final ECKey key)
focal_class.identifier: addKey
focal_class.modifiers: public
focal_class.parameters: (final ECKey key)
focal_class.return: boolean
focal_class.signature: boolean addKey(final ECKey key)
focal_class.class_method_signature: Wallet.addKeys(final List<ECKey> keys)
focal_class.full_signature: public int addKeys(final List<ECKey> keys)
focal_class.identifier: addKeys
focal_class.modifiers: public
focal_class.parameters: (final List<ECKey> keys)
focal_class.return: int
focal_class.signature: int addKeys(final List<ECKey> keys)
focal_class.class_method_signature: Wallet.isAddressWatched(Address address)
focal_class.full_signature: public boolean isAddressWatched(Address address)
focal_class.identifier: isAddressWatched
focal_class.modifiers: public
focal_class.parameters: (Address address)
focal_class.return: boolean
focal_class.signature: boolean isAddressWatched(Address address)
focal_class.class_method_signature: Wallet.addWatchedAddress(final Address address)
focal_class.full_signature: public boolean addWatchedAddress(final Address address)
focal_class.identifier: addWatchedAddress
focal_class.modifiers: public
focal_class.parameters: (final Address address)
focal_class.return: boolean
focal_class.signature: boolean addWatchedAddress(final Address address)
focal_class.class_method_signature: Wallet.addWatchedAddress(final Address address, long creationTime)
focal_class.full_signature: public boolean addWatchedAddress(final Address address, long creationTime)
focal_class.identifier: addWatchedAddress
focal_class.modifiers: public
focal_class.parameters: (final Address address, long creationTime)
focal_class.return: boolean
focal_class.signature: boolean addWatchedAddress(final Address address, long creationTime)
focal_class.class_method_signature: Wallet.addWatchedAddresses(final List<Address> addresses, long creationTime)
focal_class.full_signature: public int addWatchedAddresses(final List<Address> addresses, long creationTime)
focal_class.identifier: addWatchedAddresses
focal_class.modifiers: public
focal_class.parameters: (final List<Address> addresses, long creationTime)
focal_class.return: int
focal_class.signature: int addWatchedAddresses(final List<Address> addresses, long creationTime)
focal_class.class_method_signature: Wallet.addWatchedScripts(final List<Script> scripts)
focal_class.full_signature: public int addWatchedScripts(final List<Script> scripts)
focal_class.identifier: addWatchedScripts
focal_class.modifiers: public
focal_class.parameters: (final List<Script> scripts)
focal_class.return: int
focal_class.signature: int addWatchedScripts(final List<Script> scripts)
focal_class.class_method_signature: Wallet.findKeyFromPubHash(byte[] pubkeyHash)
focal_class.full_signature: @Nullable public ECKey findKeyFromPubHash(byte[] pubkeyHash)
focal_class.identifier: findKeyFromPubHash
focal_class.modifiers: @Nullable public
focal_class.parameters: (byte[] pubkeyHash)
focal_class.return: ECKey
focal_class.signature: ECKey findKeyFromPubHash(byte[] pubkeyHash)
focal_class.class_method_signature: Wallet.hasKey(ECKey key)
focal_class.full_signature: public boolean hasKey(ECKey key)
focal_class.identifier: hasKey
focal_class.modifiers: public
focal_class.parameters: (ECKey key)
focal_class.return: boolean
focal_class.signature: boolean hasKey(ECKey key)
focal_class.class_method_signature: Wallet.isPubKeyHashMine(byte[] pubkeyHash)
focal_class.full_signature: public boolean isPubKeyHashMine(byte[] pubkeyHash)
focal_class.identifier: isPubKeyHashMine
focal_class.modifiers: public
focal_class.parameters: (byte[] pubkeyHash)
focal_class.return: boolean
focal_class.signature: boolean isPubKeyHashMine(byte[] pubkeyHash)
focal_class.class_method_signature: Wallet.isWatchedScript(Script script)
focal_class.full_signature: public boolean isWatchedScript(Script script)
focal_class.identifier: isWatchedScript
focal_class.modifiers: public
focal_class.parameters: (Script script)
focal_class.return: boolean
focal_class.signature: boolean isWatchedScript(Script script)
focal_class.class_method_signature: Wallet.findKeyFromPubKey(byte[] pubkey)
focal_class.full_signature: @Nullable public ECKey findKeyFromPubKey(byte[] pubkey)
focal_class.identifier: findKeyFromPubKey
focal_class.modifiers: @Nullable public
focal_class.parameters: (byte[] pubkey)
focal_class.return: ECKey
focal_class.signature: ECKey findKeyFromPubKey(byte[] pubkey)
focal_class.class_method_signature: Wallet.isPubKeyMine(byte[] pubkey)
focal_class.full_signature: public boolean isPubKeyMine(byte[] pubkey)
focal_class.identifier: isPubKeyMine
focal_class.modifiers: public
focal_class.parameters: (byte[] pubkey)
focal_class.return: boolean
focal_class.signature: boolean isPubKeyMine(byte[] pubkey)
focal_class.class_method_signature: Wallet.getBalance()
focal_class.full_signature: public BigInteger getBalance()
focal_class.identifier: getBalance
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: BigInteger
focal_class.signature: BigInteger getBalance()
focal_class.class_method_signature: Wallet.getBalance(BalanceType balanceType)
focal_class.full_signature: public BigInteger getBalance(BalanceType balanceType)
focal_class.identifier: getBalance
focal_class.modifiers: public
focal_class.parameters: (BalanceType balanceType)
focal_class.return: BigInteger
focal_class.signature: BigInteger getBalance(BalanceType balanceType)
focal_class.class_method_signature: Wallet.getBalance(CoinSelector selector)
focal_class.full_signature: public BigInteger getBalance(CoinSelector selector)
focal_class.identifier: getBalance
focal_class.modifiers: public
focal_class.parameters: (CoinSelector selector)
focal_class.return: BigInteger
focal_class.signature: BigInteger getBalance(CoinSelector selector)
focal_class.class_method_signature: Wallet.getWatchedBalance()
focal_class.full_signature: public BigInteger getWatchedBalance()
focal_class.identifier: getWatchedBalance
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: BigInteger
focal_class.signature: BigInteger getWatchedBalance()
focal_class.class_method_signature: Wallet.getWatchedBalance(CoinSelector selector)
focal_class.full_signature: public BigInteger getWatchedBalance(CoinSelector selector)
focal_class.identifier: getWatchedBalance
focal_class.modifiers: public
focal_class.parameters: (CoinSelector selector)
focal_class.return: BigInteger
focal_class.signature: BigInteger getWatchedBalance(CoinSelector selector)
focal_class.class_method_signature: Wallet.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: Wallet.toString(boolean includePrivateKeys, boolean includeTransactions, boolean includeExtensions,
                             @Nullable AbstractBlockChain chain)
focal_class.full_signature: public String toString(boolean includePrivateKeys, boolean includeTransactions, boolean includeExtensions,
                             @Nullable AbstractBlockChain chain)
focal_class.identifier: toString
focal_class.modifiers: public
focal_class.parameters: (boolean includePrivateKeys, boolean includeTransactions, boolean includeExtensions,
                             @Nullable AbstractBlockChain chain)
focal_class.return: String
focal_class.signature: String toString(boolean includePrivateKeys, boolean includeTransactions, boolean includeExtensions,
                             @Nullable AbstractBlockChain chain)
focal_class.class_method_signature: Wallet.toStringHelper(StringBuilder builder, Map<Sha256Hash, Transaction> transactionMap,
                                  @Nullable AbstractBlockChain chain, @Nullable Comparator<Transaction> sortOrder)
focal_class.full_signature: private void toStringHelper(StringBuilder builder, Map<Sha256Hash, Transaction> transactionMap,
                                  @Nullable AbstractBlockChain chain, @Nullable Comparator<Transaction> sortOrder)
focal_class.identifier: toStringHelper
focal_class.modifiers: private
focal_class.parameters: (StringBuilder builder, Map<Sha256Hash, Transaction> transactionMap,
                                  @Nullable AbstractBlockChain chain, @Nullable Comparator<Transaction> sortOrder)
focal_class.return: void
focal_class.signature: void toStringHelper(StringBuilder builder, Map<Sha256Hash, Transaction> transactionMap,
                                  @Nullable AbstractBlockChain chain, @Nullable Comparator<Transaction> sortOrder)
focal_class.class_method_signature: Wallet.reorganize(StoredBlock splitPoint, List<StoredBlock> oldBlocks, List<StoredBlock> newBlocks)
focal_class.full_signature: public void reorganize(StoredBlock splitPoint, List<StoredBlock> oldBlocks, List<StoredBlock> newBlocks)
focal_class.identifier: reorganize
focal_class.modifiers: public
focal_class.parameters: (StoredBlock splitPoint, List<StoredBlock> oldBlocks, List<StoredBlock> newBlocks)
focal_class.return: void
focal_class.signature: void reorganize(StoredBlock splitPoint, List<StoredBlock> oldBlocks, List<StoredBlock> newBlocks)
focal_class.class_method_signature: Wallet.subtractDepthAndWorkDone(int depthToSubtract, BigInteger workDoneToSubtract,
                                            Collection<Transaction> transactions)
focal_class.full_signature: private void subtractDepthAndWorkDone(int depthToSubtract, BigInteger workDoneToSubtract,
                                            Collection<Transaction> transactions)
focal_class.identifier: subtractDepthAndWorkDone
focal_class.modifiers: private
focal_class.parameters: (int depthToSubtract, BigInteger workDoneToSubtract,
                                            Collection<Transaction> transactions)
focal_class.return: void
focal_class.signature: void subtractDepthAndWorkDone(int depthToSubtract, BigInteger workDoneToSubtract,
                                            Collection<Transaction> transactions)
focal_class.class_method_signature: Wallet.getPendingTransactions()
focal_class.full_signature: public Collection<Transaction> getPendingTransactions()
focal_class.identifier: getPendingTransactions
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Collection<Transaction>
focal_class.signature: Collection<Transaction> getPendingTransactions()
focal_class.class_method_signature: Wallet.getEarliestKeyCreationTime()
focal_class.full_signature: @Override public long getEarliestKeyCreationTime()
focal_class.identifier: getEarliestKeyCreationTime
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getEarliestKeyCreationTime()
focal_class.class_method_signature: Wallet.getLastBlockSeenHash()
focal_class.full_signature: @Nullable public Sha256Hash getLastBlockSeenHash()
focal_class.identifier: getLastBlockSeenHash
focal_class.modifiers: @Nullable public
focal_class.parameters: ()
focal_class.return: Sha256Hash
focal_class.signature: Sha256Hash getLastBlockSeenHash()
focal_class.class_method_signature: Wallet.setLastBlockSeenHash(@Nullable Sha256Hash lastBlockSeenHash)
focal_class.full_signature: public void setLastBlockSeenHash(@Nullable Sha256Hash lastBlockSeenHash)
focal_class.identifier: setLastBlockSeenHash
focal_class.modifiers: public
focal_class.parameters: (@Nullable Sha256Hash lastBlockSeenHash)
focal_class.return: void
focal_class.signature: void setLastBlockSeenHash(@Nullable Sha256Hash lastBlockSeenHash)
focal_class.class_method_signature: Wallet.setLastBlockSeenHeight(int lastBlockSeenHeight)
focal_class.full_signature: public void setLastBlockSeenHeight(int lastBlockSeenHeight)
focal_class.identifier: setLastBlockSeenHeight
focal_class.modifiers: public
focal_class.parameters: (int lastBlockSeenHeight)
focal_class.return: void
focal_class.signature: void setLastBlockSeenHeight(int lastBlockSeenHeight)
focal_class.class_method_signature: Wallet.setLastBlockSeenTimeSecs(long timeSecs)
focal_class.full_signature: public void setLastBlockSeenTimeSecs(long timeSecs)
focal_class.identifier: setLastBlockSeenTimeSecs
focal_class.modifiers: public
focal_class.parameters: (long timeSecs)
focal_class.return: void
focal_class.signature: void setLastBlockSeenTimeSecs(long timeSecs)
focal_class.class_method_signature: Wallet.getLastBlockSeenTimeSecs()
focal_class.full_signature: public long getLastBlockSeenTimeSecs()
focal_class.identifier: getLastBlockSeenTimeSecs
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getLastBlockSeenTimeSecs()
focal_class.class_method_signature: Wallet.getLastBlockSeenTime()
focal_class.full_signature: @Nullable public Date getLastBlockSeenTime()
focal_class.identifier: getLastBlockSeenTime
focal_class.modifiers: @Nullable public
focal_class.parameters: ()
focal_class.return: Date
focal_class.signature: Date getLastBlockSeenTime()
focal_class.class_method_signature: Wallet.getLastBlockSeenHeight()
focal_class.full_signature: public int getLastBlockSeenHeight()
focal_class.identifier: getLastBlockSeenHeight
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getLastBlockSeenHeight()
focal_class.class_method_signature: Wallet.encrypt(CharSequence password)
focal_class.full_signature: public KeyParameter encrypt(CharSequence password)
focal_class.identifier: encrypt
focal_class.modifiers: public
focal_class.parameters: (CharSequence password)
focal_class.return: KeyParameter
focal_class.signature: KeyParameter encrypt(CharSequence password)
focal_class.class_method_signature: Wallet.encrypt(KeyCrypter keyCrypter, KeyParameter aesKey)
focal_class.full_signature: public void encrypt(KeyCrypter keyCrypter, KeyParameter aesKey)
focal_class.identifier: encrypt
focal_class.modifiers: public
focal_class.parameters: (KeyCrypter keyCrypter, KeyParameter aesKey)
focal_class.return: void
focal_class.signature: void encrypt(KeyCrypter keyCrypter, KeyParameter aesKey)
focal_class.class_method_signature: Wallet.decrypt(KeyParameter aesKey)
focal_class.full_signature: public void decrypt(KeyParameter aesKey)
focal_class.identifier: decrypt
focal_class.modifiers: public
focal_class.parameters: (KeyParameter aesKey)
focal_class.return: void
focal_class.signature: void decrypt(KeyParameter aesKey)
focal_class.class_method_signature: Wallet.addNewEncryptedKey(KeyCrypter keyCrypter, KeyParameter aesKey)
focal_class.full_signature: public ECKey addNewEncryptedKey(KeyCrypter keyCrypter, KeyParameter aesKey)
focal_class.identifier: addNewEncryptedKey
focal_class.modifiers: public
focal_class.parameters: (KeyCrypter keyCrypter, KeyParameter aesKey)
focal_class.return: ECKey
focal_class.signature: ECKey addNewEncryptedKey(KeyCrypter keyCrypter, KeyParameter aesKey)
focal_class.class_method_signature: Wallet.addNewEncryptedKey(CharSequence password)
focal_class.full_signature: public ECKey addNewEncryptedKey(CharSequence password)
focal_class.identifier: addNewEncryptedKey
focal_class.modifiers: public
focal_class.parameters: (CharSequence password)
focal_class.return: ECKey
focal_class.signature: ECKey addNewEncryptedKey(CharSequence password)
focal_class.class_method_signature: Wallet.checkPassword(CharSequence password)
focal_class.full_signature: public boolean checkPassword(CharSequence password)
focal_class.identifier: checkPassword
focal_class.modifiers: public
focal_class.parameters: (CharSequence password)
focal_class.return: boolean
focal_class.signature: boolean checkPassword(CharSequence password)
focal_class.class_method_signature: Wallet.checkAESKey(KeyParameter aesKey)
focal_class.full_signature: public boolean checkAESKey(KeyParameter aesKey)
focal_class.identifier: checkAESKey
focal_class.modifiers: public
focal_class.parameters: (KeyParameter aesKey)
focal_class.return: boolean
focal_class.signature: boolean checkAESKey(KeyParameter aesKey)
focal_class.class_method_signature: Wallet.getKeyCrypter()
focal_class.full_signature: public KeyCrypter getKeyCrypter()
focal_class.identifier: getKeyCrypter
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: KeyCrypter
focal_class.signature: KeyCrypter getKeyCrypter()
focal_class.class_method_signature: Wallet.setKeyCrypter(KeyCrypter keyCrypter)
focal_class.full_signature: public void setKeyCrypter(KeyCrypter keyCrypter)
focal_class.identifier: setKeyCrypter
focal_class.modifiers: public
focal_class.parameters: (KeyCrypter keyCrypter)
focal_class.return: void
focal_class.signature: void setKeyCrypter(KeyCrypter keyCrypter)
focal_class.class_method_signature: Wallet.getEncryptionType()
focal_class.full_signature: public EncryptionType getEncryptionType()
focal_class.identifier: getEncryptionType
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: EncryptionType
focal_class.signature: EncryptionType getEncryptionType()
focal_class.class_method_signature: Wallet.isEncrypted()
focal_class.full_signature: public boolean isEncrypted()
focal_class.identifier: isEncrypted
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isEncrypted()
focal_class.class_method_signature: Wallet.getVersion()
focal_class.full_signature: public int getVersion()
focal_class.identifier: getVersion
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getVersion()
focal_class.class_method_signature: Wallet.setVersion(int version)
focal_class.full_signature: public void setVersion(int version)
focal_class.identifier: setVersion
focal_class.modifiers: public
focal_class.parameters: (int version)
focal_class.return: void
focal_class.signature: void setVersion(int version)
focal_class.class_method_signature: Wallet.setDescription(String description)
focal_class.full_signature: public void setDescription(String description)
focal_class.identifier: setDescription
focal_class.modifiers: public
focal_class.parameters: (String description)
focal_class.return: void
focal_class.signature: void setDescription(String description)
focal_class.class_method_signature: Wallet.getDescription()
focal_class.full_signature: public String getDescription()
focal_class.identifier: getDescription
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getDescription()
focal_class.class_method_signature: Wallet.getBloomFilterElementCount()
focal_class.full_signature: @Override public int getBloomFilterElementCount()
focal_class.identifier: getBloomFilterElementCount
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getBloomFilterElementCount()
focal_class.class_method_signature: Wallet.isRequiringUpdateAllBloomFilter()
focal_class.full_signature: @Override public boolean isRequiringUpdateAllBloomFilter()
focal_class.identifier: isRequiringUpdateAllBloomFilter
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isRequiringUpdateAllBloomFilter()
focal_class.class_method_signature: Wallet.getBloomFilter(double falsePositiveRate)
focal_class.full_signature: public BloomFilter getBloomFilter(double falsePositiveRate)
focal_class.identifier: getBloomFilter
focal_class.modifiers: public
focal_class.parameters: (double falsePositiveRate)
focal_class.return: BloomFilter
focal_class.signature: BloomFilter getBloomFilter(double falsePositiveRate)
focal_class.class_method_signature: Wallet.getBloomFilter(int size, double falsePositiveRate, long nTweak)
focal_class.full_signature: @Override public BloomFilter getBloomFilter(int size, double falsePositiveRate, long nTweak)
focal_class.identifier: getBloomFilter
focal_class.modifiers: @Override public
focal_class.parameters: (int size, double falsePositiveRate, long nTweak)
focal_class.return: BloomFilter
focal_class.signature: BloomFilter getBloomFilter(int size, double falsePositiveRate, long nTweak)
focal_class.class_method_signature: Wallet.isTxOutputBloomFilterable(TransactionOutput out)
focal_class.full_signature: private boolean isTxOutputBloomFilterable(TransactionOutput out)
focal_class.identifier: isTxOutputBloomFilterable
focal_class.modifiers: private
focal_class.parameters: (TransactionOutput out)
focal_class.return: boolean
focal_class.signature: boolean isTxOutputBloomFilterable(TransactionOutput out)
focal_class.class_method_signature: Wallet.getCoinSelector()
focal_class.full_signature: public CoinSelector getCoinSelector()
focal_class.identifier: getCoinSelector
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: CoinSelector
focal_class.signature: CoinSelector getCoinSelector()
focal_class.class_method_signature: Wallet.setCoinSelector(@Nonnull CoinSelector coinSelector)
focal_class.full_signature: public void setCoinSelector(@Nonnull CoinSelector coinSelector)
focal_class.identifier: setCoinSelector
focal_class.modifiers: public
focal_class.parameters: (@Nonnull CoinSelector coinSelector)
focal_class.return: void
focal_class.signature: void setCoinSelector(@Nonnull CoinSelector coinSelector)
focal_class.class_method_signature: Wallet.allowSpendingUnconfirmedTransactions()
focal_class.full_signature: public void allowSpendingUnconfirmedTransactions()
focal_class.identifier: allowSpendingUnconfirmedTransactions
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void allowSpendingUnconfirmedTransactions()
focal_class.class_method_signature: Wallet.getBalanceFuture(final BigInteger value, final BalanceType type)
focal_class.full_signature: public ListenableFuture<BigInteger> getBalanceFuture(final BigInteger value, final BalanceType type)
focal_class.identifier: getBalanceFuture
focal_class.modifiers: public
focal_class.parameters: (final BigInteger value, final BalanceType type)
focal_class.return: ListenableFuture<BigInteger>
focal_class.signature: ListenableFuture<BigInteger> getBalanceFuture(final BigInteger value, final BalanceType type)
focal_class.class_method_signature: Wallet.checkBalanceFuturesLocked(@Nullable BigInteger avail)
focal_class.full_signature: private void checkBalanceFuturesLocked(@Nullable BigInteger avail)
focal_class.identifier: checkBalanceFuturesLocked
focal_class.modifiers: private
focal_class.parameters: (@Nullable BigInteger avail)
focal_class.return: void
focal_class.signature: void checkBalanceFuturesLocked(@Nullable BigInteger avail)
focal_class.class_method_signature: Wallet.addExtension(WalletExtension extension)
focal_class.full_signature: public void addExtension(WalletExtension extension)
focal_class.identifier: addExtension
focal_class.modifiers: public
focal_class.parameters: (WalletExtension extension)
focal_class.return: void
focal_class.signature: void addExtension(WalletExtension extension)
focal_class.class_method_signature: Wallet.addOrGetExistingExtension(WalletExtension extension)
focal_class.full_signature: public WalletExtension addOrGetExistingExtension(WalletExtension extension)
focal_class.identifier: addOrGetExistingExtension
focal_class.modifiers: public
focal_class.parameters: (WalletExtension extension)
focal_class.return: WalletExtension
focal_class.signature: WalletExtension addOrGetExistingExtension(WalletExtension extension)
focal_class.class_method_signature: Wallet.addOrUpdateExtension(WalletExtension extension)
focal_class.full_signature: public void addOrUpdateExtension(WalletExtension extension)
focal_class.identifier: addOrUpdateExtension
focal_class.modifiers: public
focal_class.parameters: (WalletExtension extension)
focal_class.return: void
focal_class.signature: void addOrUpdateExtension(WalletExtension extension)
focal_class.class_method_signature: Wallet.getExtensions()
focal_class.full_signature: public Map<String, WalletExtension> getExtensions()
focal_class.identifier: getExtensions
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Map<String, WalletExtension>
focal_class.signature: Map<String, WalletExtension> getExtensions()
focal_class.class_method_signature: Wallet.queueOnTransactionConfidenceChanged(final Transaction tx)
focal_class.full_signature: private void queueOnTransactionConfidenceChanged(final Transaction tx)
focal_class.identifier: queueOnTransactionConfidenceChanged
focal_class.modifiers: private
focal_class.parameters: (final Transaction tx)
focal_class.return: void
focal_class.signature: void queueOnTransactionConfidenceChanged(final Transaction tx)
focal_class.class_method_signature: Wallet.maybeQueueOnWalletChanged()
focal_class.full_signature: private void maybeQueueOnWalletChanged()
focal_class.identifier: maybeQueueOnWalletChanged
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void maybeQueueOnWalletChanged()
focal_class.class_method_signature: Wallet.queueOnCoinsReceived(final Transaction tx, final BigInteger balance, final BigInteger newBalance)
focal_class.full_signature: private void queueOnCoinsReceived(final Transaction tx, final BigInteger balance, final BigInteger newBalance)
focal_class.identifier: queueOnCoinsReceived
focal_class.modifiers: private
focal_class.parameters: (final Transaction tx, final BigInteger balance, final BigInteger newBalance)
focal_class.return: void
focal_class.signature: void queueOnCoinsReceived(final Transaction tx, final BigInteger balance, final BigInteger newBalance)
focal_class.class_method_signature: Wallet.queueOnCoinsSent(final Transaction tx, final BigInteger prevBalance, final BigInteger newBalance)
focal_class.full_signature: private void queueOnCoinsSent(final Transaction tx, final BigInteger prevBalance, final BigInteger newBalance)
focal_class.identifier: queueOnCoinsSent
focal_class.modifiers: private
focal_class.parameters: (final Transaction tx, final BigInteger prevBalance, final BigInteger newBalance)
focal_class.return: void
focal_class.signature: void queueOnCoinsSent(final Transaction tx, final BigInteger prevBalance, final BigInteger newBalance)
focal_class.class_method_signature: Wallet.queueOnReorganize()
focal_class.full_signature: private void queueOnReorganize()
focal_class.identifier: queueOnReorganize
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void queueOnReorganize()
focal_class.class_method_signature: Wallet.queueOnKeysAdded(final List<ECKey> keys)
focal_class.full_signature: private void queueOnKeysAdded(final List<ECKey> keys)
focal_class.identifier: queueOnKeysAdded
focal_class.modifiers: private
focal_class.parameters: (final List<ECKey> keys)
focal_class.return: void
focal_class.signature: void queueOnKeysAdded(final List<ECKey> keys)
focal_class.class_method_signature: Wallet.queueOnScriptsAdded(final List<Script> scripts)
focal_class.full_signature: private void queueOnScriptsAdded(final List<Script> scripts)
focal_class.identifier: queueOnScriptsAdded
focal_class.modifiers: private
focal_class.parameters: (final List<Script> scripts)
focal_class.return: void
focal_class.signature: void queueOnScriptsAdded(final List<Script> scripts)
focal_class.class_method_signature: Wallet.estimateBytesForSigning(CoinSelection selection)
focal_class.full_signature: private int estimateBytesForSigning(CoinSelection selection)
focal_class.identifier: estimateBytesForSigning
focal_class.modifiers: private
focal_class.parameters: (CoinSelection selection)
focal_class.return: int
focal_class.signature: int estimateBytesForSigning(CoinSelection selection)
focal_class.class_method_signature: Wallet.setTransactionBroadcaster(@Nullable com.google.bitcoin.core.TransactionBroadcaster broadcaster)
focal_class.full_signature: public void setTransactionBroadcaster(@Nullable com.google.bitcoin.core.TransactionBroadcaster broadcaster)
focal_class.identifier: setTransactionBroadcaster
focal_class.modifiers: public
focal_class.parameters: (@Nullable com.google.bitcoin.core.TransactionBroadcaster broadcaster)
focal_class.return: void
focal_class.signature: void setTransactionBroadcaster(@Nullable com.google.bitcoin.core.TransactionBroadcaster broadcaster)
focal_class.class_method_signature: Wallet.setKeyRotationTime(Date time)
focal_class.full_signature: public void setKeyRotationTime(Date time)
focal_class.identifier: setKeyRotationTime
focal_class.modifiers: public
focal_class.parameters: (Date time)
focal_class.return: void
focal_class.signature: void setKeyRotationTime(Date time)
focal_class.class_method_signature: Wallet.getKeyRotationTime()
focal_class.full_signature: public Date getKeyRotationTime()
focal_class.identifier: getKeyRotationTime
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Date
focal_class.signature: Date getKeyRotationTime()
focal_class.class_method_signature: Wallet.setKeyRotationTime(long unixTimeSeconds)
focal_class.full_signature: public void setKeyRotationTime(long unixTimeSeconds)
focal_class.identifier: setKeyRotationTime
focal_class.modifiers: public
focal_class.parameters: (long unixTimeSeconds)
focal_class.return: void
focal_class.signature: void setKeyRotationTime(long unixTimeSeconds)
focal_class.class_method_signature: Wallet.setKeyRotationEnabled(boolean enabled)
focal_class.full_signature: public void setKeyRotationEnabled(boolean enabled)
focal_class.identifier: setKeyRotationEnabled
focal_class.modifiers: public
focal_class.parameters: (boolean enabled)
focal_class.return: void
focal_class.signature: void setKeyRotationEnabled(boolean enabled)
focal_class.class_method_signature: Wallet.isKeyRotating(ECKey key)
focal_class.full_signature: public boolean isKeyRotating(ECKey key)
focal_class.identifier: isKeyRotating
focal_class.modifiers: public
focal_class.parameters: (ECKey key)
focal_class.return: boolean
focal_class.signature: boolean isKeyRotating(ECKey key)
focal_class.class_method_signature: Wallet.maybeRotateKeys()
focal_class.full_signature: private void maybeRotateKeys()
focal_class.identifier: maybeRotateKeys
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void maybeRotateKeys()
focal_class.class_method_signature: Wallet.rekeyOneBatch(long keyRotationTimestamp, final TransactionBroadcaster broadcaster)
focal_class.full_signature: @Nullable private Transaction rekeyOneBatch(long keyRotationTimestamp, final TransactionBroadcaster broadcaster)
focal_class.identifier: rekeyOneBatch
focal_class.modifiers: @Nullable private
focal_class.parameters: (long keyRotationTimestamp, final TransactionBroadcaster broadcaster)
focal_class.return: Transaction
focal_class.signature: Transaction rekeyOneBatch(long keyRotationTimestamp, final TransactionBroadcaster broadcaster)
focal_method.body: public void completeTx(SendRequest req) throws InsufficientMoneyException {
          lock.lock();
          try {
              checkArgument(!req.completed, "Given SendRequest has already been completed.");
              // Calculate the amount of value we need to import.
              BigInteger value = BigInteger.ZERO;
              for (TransactionOutput output : req.tx.getOutputs()) {
                  value = value.add(output.getValue());
              }
              BigInteger totalOutput = value;
  
              log.info("Completing send tx with {} outputs totalling {} satoshis (not including fees)",
                      req.tx.getOutputs().size(), value);
  
              // If any inputs have already been added, we don't need to get their value from wallet
              BigInteger totalInput = BigInteger.ZERO;
              for (TransactionInput input : req.tx.getInputs())
                  if (input.getConnectedOutput() != null)
                      totalInput = totalInput.add(input.getConnectedOutput().getValue());
                  else
                      log.warn("SendRequest transaction already has inputs but we don't know how much they are worth - they will be added to fee.");
              value = value.subtract(totalInput);
  
              List<TransactionInput> originalInputs = new ArrayList<TransactionInput>(req.tx.getInputs());
  
              // We need to know if we need to add an additional fee because one of our values are smaller than 0.01 BTC
              boolean needAtLeastReferenceFee = false;
              if (req.ensureMinRequiredFee && !req.emptyWallet) { // min fee checking is handled later for emptyWallet
                  for (TransactionOutput output : req.tx.getOutputs())
                      if (output.getValue().compareTo(Utils.CENT) < 0) {
                          if (output.getValue().compareTo(output.getMinNonDustValue()) < 0)
                              throw new IllegalArgumentException("Tried to send dust with ensureMinRequiredFee set - no way to complete this");
                          needAtLeastReferenceFee = true;
                          break;
                      }
              }
  
              // Calculate a list of ALL potential candidates for spending and then ask a coin selector to provide us
              // with the actual outputs that'll be used to gather the required amount of value. In this way, users
              // can customize coin selection policies.
              //
              // Note that this code is poorly optimized: the spend candidates only alter when transactions in the wallet
              // change - it could be pre-calculated and held in RAM, and this is probably an optimization worth doing.
              // Note that output.isMine(this) needs to test the keychain which is currently an array, so it's
              // O(candidate outputs ^ keychain.size())! There's lots of low hanging fruit here.
              LinkedList<TransactionOutput> candidates = calculateAllSpendCandidates(true);
              CoinSelection bestCoinSelection;
              TransactionOutput bestChangeOutput = null;
              if (!req.emptyWallet) {
                  // This can throw InsufficientMoneyException.
                  FeeCalculation feeCalculation;
                  feeCalculation = new FeeCalculation(req, value, originalInputs, needAtLeastReferenceFee, candidates);
                  bestCoinSelection = feeCalculation.bestCoinSelection;
                  bestChangeOutput = feeCalculation.bestChangeOutput;
              } else {
                  // We're being asked to empty the wallet. What this means is ensuring "tx" has only a single output
                  // of the total value we can currently spend as determined by the selector, and then subtracting the fee.
                  checkState(req.tx.getOutputs().size() == 1, "Empty wallet TX must have a single output only.");
                  CoinSelector selector = req.coinSelector == null ? coinSelector : req.coinSelector;
                  bestCoinSelection = selector.select(NetworkParameters.MAX_MONEY, candidates);
                  req.tx.getOutput(0).setValue(bestCoinSelection.valueGathered);
                  totalOutput = bestCoinSelection.valueGathered;
              }
  
              for (TransactionOutput output : bestCoinSelection.gathered)
                  req.tx.addInput(output);
  
              if (req.ensureMinRequiredFee && req.emptyWallet) {
                  final BigInteger baseFee = req.fee == null ? BigInteger.ZERO : req.fee;
                  final BigInteger feePerKb = req.feePerKb == null ? BigInteger.ZERO : req.feePerKb;
                  Transaction tx = req.tx;
                  if (!adjustOutputDownwardsForFee(tx, bestCoinSelection, baseFee, feePerKb))
                      throw new InsufficientMoneyException.CouldNotAdjustDownwards();
              }
  
              totalInput = totalInput.add(bestCoinSelection.valueGathered);
  
              if (bestChangeOutput != null) {
                  req.tx.addOutput(bestChangeOutput);
                  totalOutput = totalOutput.add(bestChangeOutput.getValue());
                  log.info("  with {} coins change", bitcoinValueToFriendlyString(bestChangeOutput.getValue()));
              }
              final BigInteger calculatedFee = totalInput.subtract(totalOutput);
              if (calculatedFee.signum() > 0) {
                  log.info("  with a fee of {}", bitcoinValueToFriendlyString(calculatedFee));
              }
  
              // Now sign the inputs, thus proving that we are entitled to redeem the connected outputs.
              req.tx.signInputs(Transaction.SigHash.ALL, this, req.aesKey);
  
              // Check size.
              int size = req.tx.bitcoinSerialize().length;
              if (size > Transaction.MAX_STANDARD_TX_SIZE) {
                  throw new IllegalArgumentException(
                          String.format("Transaction could not be created without exceeding max size: %d vs %d", size,
                              Transaction.MAX_STANDARD_TX_SIZE));
              }
  
              // Label the transaction as being self created. We can use this later to spend its change output even before
              // the transaction is confirmed. We deliberately won't bother notifying listeners here as there's not much
              // point - the user isn't interested in a confidence transition they made themselves.
              req.tx.getConfidence().setSource(TransactionConfidence.Source.SELF);
              // Label the transaction as being a user requested payment. This can be used to render GUI wallet
              // transaction lists more appropriately, especially when the wallet starts to generate transactions itself
              // for internal purposes.
              req.tx.setPurpose(Transaction.Purpose.USER_PAYMENT);
              req.completed = true;
              req.fee = calculatedFee;
              log.info("  completed: {}", req.tx);
          } finally {
              lock.unlock();
          }
      }
focal_method.class_method_signature: Wallet.completeTx(SendRequest req)
focal_method.full_signature: public void completeTx(SendRequest req)
focal_method.identifier: completeTx
focal_method.invocations: lock checkArgument getOutputs add getValue info size getOutputs getInputs getConnectedOutput add getValue getConnectedOutput warn subtract getInputs getOutputs compareTo getValue compareTo getValue getMinNonDustValue calculateAllSpendCandidates checkState size getOutputs select setValue getOutput addInput adjustOutputDownwardsForFee add addOutput add getValue info bitcoinValueToFriendlyString getValue subtract signum info bitcoinValueToFriendlyString signInputs bitcoinSerialize format setSource getConfidence setPurpose info unlock
focal_method.modifiers: public
focal_method.parameters: (SendRequest req)
focal_method.return: void
focal_method.signature: void completeTx(SendRequest req)