diff --git a/core/src/main/java/org/bitcoinj/core/Wallet.java b/core/src/main/java/org/bitcoinj/core/Wallet.java index 9e406d06..34b2efc5 100644 --- a/core/src/main/java/org/bitcoinj/core/Wallet.java +++ b/core/src/main/java/org/bitcoinj/core/Wallet.java @@ -2414,6 +2414,8 @@ public class Wallet extends BaseTaggableObject confidenceChanged.put(tx, TransactionConfidence.Listener.ChangeReason.TYPE); addWalletTransaction(Pool.PENDING, tx); } + if (log.isInfoEnabled()) + log.info("Estimated balance is now: {}", getBalance(BalanceType.ESTIMATED).toFriendlyString()); // Mark any keys used in the outputs as "used", this allows wallet UI's to auto-advance the current key // they are showing to the user in qr codes etc. @@ -3042,6 +3044,8 @@ public class Wallet extends BaseTaggableObject if (dirty) { isConsistentOrThrow(); saveLater(); + if (log.isInfoEnabled()) + log.info("Estimated balance is now: {}", getBalance(BalanceType.ESTIMATED).toFriendlyString()); } } finally { lock.unlock();