From d512534cd71ebdb67bf0cb2a377dc7c2b06ba438 Mon Sep 17 00:00:00 2001 From: JaSK Date: Sat, 12 Jul 2014 17:15:17 +0200 Subject: [PATCH] Fixed error in 'getbalance' when using watchonly addresses. --- src/wallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet.cpp b/src/wallet.cpp index 8d27da9d40f..a754c1cd5f9 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -845,7 +845,7 @@ void CWalletTx::GetAmounts(list >& 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)); }