From 7a45c9308a9200c6061bfd2be48ff8ac5173df93 Mon Sep 17 00:00:00 2001 From: Nathan Marley Date: Mon, 17 Oct 2016 13:56:27 -0500 Subject: [PATCH] bugfix: remove duplicate MN votes from getvotes (#1077) --- src/governance.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/governance.cpp b/src/governance.cpp index f2ec9ce87..97d6f8082 100644 --- a/src/governance.cpp +++ b/src/governance.cpp @@ -378,8 +378,8 @@ std::vector CGovernanceManager::GetMatchingVotes(const uint256 // LOOP THROUGH ALL VOTES AND FIND THOSE MATCHING USER HASH - vote_m_it it2 = mapVotesByHash.begin(); - while(it2 != mapVotesByHash.end()) { + vote_m_it it2 = mapVotesByType.begin(); + while(it2 != mapVotesByType.end()) { if((*it2).second.GetParentHash() == nParentHash) { vecResult.push_back(&(*it2).second); }