From d9d11f676551390d83f44750f6a502bb476d93e5 Mon Sep 17 00:00:00 2001 From: Nathan Marley Date: Wed, 12 Oct 2016 10:01:38 -0500 Subject: [PATCH] bugfix: count MN votes only once --- src/governance.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/governance.cpp b/src/governance.cpp index 7fd8e3568..997a06653 100644 --- a/src/governance.cpp +++ b/src/governance.cpp @@ -1100,8 +1100,8 @@ int CGovernanceManager::CountMatchingVotes(CGovernanceObject& govobj, vote_signa LOCK(cs); int nCount = 0; - std::map::iterator it = mapVotesByHash.begin(); - while(it != mapVotesByHash.end()) { + std::map::iterator it = mapVotesByType.begin(); + while(it != mapVotesByType.end()) { if(it->second.IsValid() && it->second.GetSignal() == eVoteSignalIn && it->second.GetOutcome() == eVoteOutcomeIn &&