bugfix: remove duplicate MN votes from getvotes (#1077)
This commit is contained in:
parent
94e38e3184
commit
7a45c9308a
@ -378,8 +378,8 @@ std::vector<CGovernanceVote*> CGovernanceManager::GetMatchingVotes(const uint256
|
|||||||
|
|
||||||
// LOOP THROUGH ALL VOTES AND FIND THOSE MATCHING USER HASH
|
// LOOP THROUGH ALL VOTES AND FIND THOSE MATCHING USER HASH
|
||||||
|
|
||||||
vote_m_it it2 = mapVotesByHash.begin();
|
vote_m_it it2 = mapVotesByType.begin();
|
||||||
while(it2 != mapVotesByHash.end()) {
|
while(it2 != mapVotesByType.end()) {
|
||||||
if((*it2).second.GetParentHash() == nParentHash) {
|
if((*it2).second.GetParentHash() == nParentHash) {
|
||||||
vecResult.push_back(&(*it2).second);
|
vecResult.push_back(&(*it2).second);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user