Skip to content

Commit d5a6b78

Browse files
committed
Merge pull request #4525
d512534 Fixed error in 'getbalance' when using watchonly addresses. (JaSK)
2 parents 6513a9f + d512534 commit d5a6b78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ void CWalletTx::GetAmounts(list<pair<CTxDestination, int64_t> >& listReceived,
845845
listSent.push_back(make_pair(address, txout.nValue));
846846

847847
// If we are receiving the output, add it as a "received" entry
848-
if (fIsMine)
848+
if (fIsMine & filter)
849849
listReceived.push_back(make_pair(address, txout.nValue));
850850
}
851851

0 commit comments

Comments
 (0)