Skip to content

Commit

Permalink
flip logic on owner checks
Browse files Browse the repository at this point in the history
  • Loading branch information
sidhujag committed Nov 23, 2018
1 parent 64ed081 commit 85c75ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/asset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1415,7 +1415,7 @@ bool CAssetDB::ScanAssets(const int count, const int from, const UniValue& oOpti
pcursor->Next();
continue;
}
if (!vchAddresses.empty() && std::find(vchAddresses.begin(), vchAddresses.end(), txPos.vchAliasOrAddress) != vchAddresses.end())
if (!vchAddresses.empty() && std::find(vchAddresses.begin(), vchAddresses.end(), txPos.vchAliasOrAddress) == vchAddresses.end())
{
pcursor->Next();
continue;
Expand Down
4 changes: 2 additions & 2 deletions src/assetallocation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1470,9 +1470,9 @@ bool CAssetAllocationTransactionsDB::ScanAssetAllocationIndex(const int count, c
continue;
if (!strAsset.empty() && strAsset != contents[1])
continue;
if (!vecSenders.empty() && std::find(vecSenders.begin(), vecSenders.end(), contents[2]) != vecSenders.end())
if (!vecSenders.empty() && std::find(vecSenders.begin(), vecSenders.end(), contents[2]) == vecSenders.end())
continue;
if (!vecReceivers.empty() && std::find(vecReceivers.begin(), vecReceivers.end(), contents[3]) != vecReceivers.end())
if (!vecReceivers.empty() && std::find(vecReceivers.begin(), vecReceivers.end(), contents[3]) == vecReceivers.end())
continue;
}
index += 1;
Expand Down

0 comments on commit 85c75ff

Please sign in to comment.