diff --git a/src/governance.cpp b/src/governance.cpp index ef4cf26f0..4019ad43c 100644 --- a/src/governance.cpp +++ b/src/governance.cpp @@ -795,10 +795,10 @@ void CGovernanceManager::Sync(CNode* pfrom, const uint256& nProp, const CBloomFi std::vector vecVotes = govobj.GetVoteFile().GetVotes(); for(size_t i = 0; i < vecVotes.size(); ++i) { - if(!vecVotes[i].IsValid(true)) { + if(filter.contains(vecVotes[i].GetHash())) { continue; } - if(filter.contains(vecVotes[i].GetHash())) { + if(!vecVotes[i].IsValid(true)) { continue; } pfrom->PushInventory(CInv(MSG_GOVERNANCE_OBJECT_VOTE, vecVotes[i].GetHash()));