From f0b258b40dde6e7723ea429a10ae0cd51cfc7972 Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Mon, 23 Sep 2013 17:03:18 +0200 Subject: [PATCH] Wallet: add a bit more logging to make output during chain splits less confusing. --- core/src/main/java/com/google/bitcoin/core/Wallet.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 5ea187a3d..e7add45cc 100644 --- a/core/src/main/java/com/google/bitcoin/core/Wallet.java +++ b/core/src/main/java/com/google/bitcoin/core/Wallet.java @@ -797,6 +797,7 @@ public class Wallet implements Serializable, BlockChainListener, PeerFilterProvi if (wasPending) { // Just put it back in without touching the connections or confidence. addWalletTransaction(Pool.PENDING, tx); + log.info(" ->pending"); } else { // Ignore the case where a tx appears on a side chain at the same time as the best chain (this is // quite normal and expected). @@ -1586,7 +1587,7 @@ public class Wallet implements Serializable, BlockChainListener, PeerFilterProvi * {@link Wallet#getChangeAddress()}, so you must have added at least one key.

* *

If you just want to send money quickly, you probably want - * {@link Wallet#sendCoins(PeerGroup, Address, java.math.BigInteger)} instead. That will create the sending + * {@link Wallet#sendCoins(TransactionBroadcaster, Address, java.math.BigInteger)} instead. That will create the sending * transaction, commit to the wallet and broadcast it to the network all in one go. This method is lower level * and lets you see the proposed transaction before anything is done with it.

*