Merge pull request #2272 from gavinandresen/getbalancefix

Fix getbalance discrepency
This commit is contained in:
Gavin Andresen
2013-04-08 06:37:58 -07:00
2 changed files with 3 additions and 3 deletions

View File

@@ -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();
}
}