Skip to content

Commit

Permalink
check validity only for missing votes (#1720)
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 authored Nov 11, 2017
1 parent ec8178c commit 28d833e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/governance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -795,10 +795,10 @@ void CGovernanceManager::Sync(CNode* pfrom, const uint256& nProp, const CBloomFi

std::vector<CGovernanceVote> 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()));
Expand Down

0 comments on commit 28d833e

Please sign in to comment.