Skip to content

Commit

Permalink
Add early return in shouldContinueToNextAccountHistory
Browse files Browse the repository at this point in the history
  • Loading branch information
shohamc1 committed Jan 14, 2023
1 parent fb703dc commit 33f3552
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/masternodes/rpc_accounts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1675,6 +1675,9 @@ UniValue accounthistorycount(const JSONRPCRequest& request) {
return false;
}

if (!accountSet.empty() && accountSet.count(key.owner) == 0)
return true;

if (isMine && !(IsMineCached(*pwallet, key.owner) & filter)) {
return true;
}
Expand Down

0 comments on commit 33f3552

Please sign in to comment.