Fixed error in 'getbalance' when using watchonly addresses.

This commit is contained in:
JaSK 2014-07-12 17:15:17 +02:00
parent 6513a9f703
commit d512534cd7

View file

@ -845,7 +845,7 @@ void CWalletTx::GetAmounts(list<pair<CTxDestination, int64_t> >& listReceived,
listSent.push_back(make_pair(address, txout.nValue));
// If we are receiving the output, add it as a "received" entry
if (fIsMine)
if (fIsMine & filter)
listReceived.push_back(make_pair(address, txout.nValue));
}