Merge #9141: Remove unnecessary calls to CheckFinalTx

4512550 Remove unnecessary calls to CheckFinalTx (Jonas Schnelli)
This commit is contained in:
Wladimir J. van der Laan 2016-11-23 07:24:38 +01:00
commit 5ea5e0401c
No known key found for this signature in database
GPG key ID: 74810B012346C9A6

View file

@ -2929,7 +2929,7 @@ std::map<CTxDestination, CAmount> CWallet::GetAddressBalances()
{ {
CWalletTx *pcoin = &walletEntry.second; CWalletTx *pcoin = &walletEntry.second;
if (!CheckFinalTx(*pcoin) || !pcoin->IsTrusted()) if (!pcoin->IsTrusted())
continue; continue;
if (pcoin->IsCoinBase() && pcoin->GetBlocksToMaturity() > 0) if (pcoin->IsCoinBase() && pcoin->GetBlocksToMaturity() > 0)