From f09e8fcd33f7f1b1f4e20f2148bbf919b97db0c4 Mon Sep 17 00:00:00 2001 From: Philip Kaufmann Date: Fri, 24 Aug 2012 08:19:27 +0200 Subject: Qt: show mined transactions at depth 1 - before, we used to show them in GUI when depth >= 2, which could lead to confusion of users, as the RPC behaviour already showed the Tx --- src/wallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wallet.cpp') diff --git a/src/wallet.cpp b/src/wallet.cpp index 5ca501b1af..9b472cd78f 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -953,7 +953,7 @@ int64 CWallet::GetImmatureBalance() const for (map::const_iterator it = mapWallet.begin(); it != mapWallet.end(); ++it) { const CWalletTx& pcoin = (*it).second; - if (pcoin.IsCoinBase() && pcoin.GetBlocksToMaturity() > 0 && pcoin.GetDepthInMainChain() >= 2) + if (pcoin.IsCoinBase() && pcoin.GetBlocksToMaturity() > 0 && pcoin.IsInMainChain()) nTotal += GetCredit(pcoin); } } -- cgit v1.2.3