mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-02 03:31:35 +02:00
Fixed error in 'getbalance' when using watchonly addresses.
This commit is contained in:
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user