aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.cpp
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2013-04-08 06:37:58 -0700
committerGavin Andresen <[email protected]>2013-04-08 06:37:58 -0700
commit1829134afec6058d2d7d713b5b280a2d4605bb2e (patch)
tree548ec9bfed891b2033b0b0acddb0463b48cab80f /src/wallet.cpp
parentMerge pull request #2403 from gmaxwell/minfee-to-relayfee (diff)
parentFix getbalance discrepency (diff)
downloaddiscoin-1829134afec6058d2d7d713b5b280a2d4605bb2e.tar.xz
discoin-1829134afec6058d2d7d713b5b280a2d4605bb2e.zip
Merge pull request #2272 from gavinandresen/getbalancefix
Fix getbalance discrepency
Diffstat (limited to 'src/wallet.cpp')
-rw-r--r--src/wallet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp
index 5761b008f..2cc2e60f8 100644
--- a/src/wallet.cpp
+++ b/src/wallet.cpp
@@ -910,7 +910,7 @@ int64 CWallet::GetBalance() const
for (map<uint256, CWalletTx>::const_iterator it = mapWallet.begin(); it != mapWallet.end(); ++it)
{
const CWalletTx* pcoin = &(*it).second;
- if (pcoin->IsFinal() && pcoin->IsConfirmed())
+ if (pcoin->IsConfirmed())
nTotal += pcoin->GetAvailableCredit();
}
}