bugfix: remove duplicate MN votes from getvotes (#1077)

This commit is contained in:
Nathan Marley 2016-10-17 13:56:27 -05:00 committed by UdjinM6
parent 94e38e3184
commit 7a45c9308a

View File

@ -378,8 +378,8 @@ std::vector<CGovernanceVote*> 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);
}