Skip to content

Commit

Permalink
remove send addresses from listreceivedbyaddress output (bitcoin#1664)
Browse files Browse the repository at this point in the history
  • Loading branch information
the-schnibble authored and UdjinM6 committed Oct 4, 2017
1 parent 72ef788 commit 8c1e5e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/wallet/rpcwallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<int>::max();
bool fIsWatchonly = false;
Expand Down

0 comments on commit 8c1e5e8

Please sign in to comment.