Merge pull request #4525
d512534
Fixed error in 'getbalance' when using watchonly addresses. (JaSK)
This commit is contained in:
commit
d5a6b785e3
1 changed files with 1 additions and 1 deletions
|
@ -845,7 +845,7 @@ void CWalletTx::GetAmounts(list<pair<CTxDestination, int64_t> >& listReceived,
|
||||||
listSent.push_back(make_pair(address, txout.nValue));
|
listSent.push_back(make_pair(address, txout.nValue));
|
||||||
|
|
||||||
// If we are receiving the output, add it as a "received" entry
|
// 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));
|
listReceived.push_back(make_pair(address, txout.nValue));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue