From 8c1e5e83841ee4b4004764f44c281ac0b163a65e Mon Sep 17 00:00:00 2001 From: Ilya Savinov Date: Wed, 4 Oct 2017 22:34:14 +0300 Subject: [PATCH] remove send addresses from listreceivedbyaddress output (#1664) --- src/wallet/rpcwallet.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index f2700c287..f4653fd89 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -1272,6 +1272,10 @@ UniValue ListReceived(const UniValue& params, bool fByAccounts) if (it == mapTally.end() && !fIncludeEmpty) continue; + isminefilter mine = IsMine(*pwalletMain, address.Get()); + if(!(mine & filter)) + continue; + CAmount nAmount = 0; int nConf = std::numeric_limits::max(); bool fIsWatchonly = false;