From 28d833eca7c97c9d2b60f7375f6a6a0183b6b3ea Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Sat, 11 Nov 2017 10:02:26 +0300 Subject: [PATCH] check validity only for missing votes (#1720) --- src/governance.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/governance.cpp b/src/governance.cpp index ef4cf26f0c485..4019ad43c8e7c 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()));