3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-16 04:05:50 +00:00

Wallet: Log estimated balance after transaction was committed to the wallet and after successful wallet cleanup.

This commit is contained in:
Andreas Schildbach 2016-03-02 14:43:42 +01:00
parent 946bfbee16
commit be1b3f592d

View File

@ -2414,6 +2414,8 @@ public class Wallet extends BaseTaggableObject
confidenceChanged.put(tx, TransactionConfidence.Listener.ChangeReason.TYPE); confidenceChanged.put(tx, TransactionConfidence.Listener.ChangeReason.TYPE);
addWalletTransaction(Pool.PENDING, tx); 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 // 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. // they are showing to the user in qr codes etc.
@ -3042,6 +3044,8 @@ public class Wallet extends BaseTaggableObject
if (dirty) { if (dirty) {
isConsistentOrThrow(); isConsistentOrThrow();
saveLater(); saveLater();
if (log.isInfoEnabled())
log.info("Estimated balance is now: {}", getBalance(BalanceType.ESTIMATED).toFriendlyString());
} }
} finally { } finally {
lock.unlock(); lock.unlock();