bugfix: count MN votes only once
This commit is contained in:
parent
2feb321c2e
commit
d9d11f6765
@ -1100,8 +1100,8 @@ int CGovernanceManager::CountMatchingVotes(CGovernanceObject& govobj, vote_signa
|
|||||||
LOCK(cs);
|
LOCK(cs);
|
||||||
int nCount = 0;
|
int nCount = 0;
|
||||||
|
|
||||||
std::map<uint256, CGovernanceVote>::iterator it = mapVotesByHash.begin();
|
std::map<uint256, CGovernanceVote>::iterator it = mapVotesByType.begin();
|
||||||
while(it != mapVotesByHash.end()) {
|
while(it != mapVotesByType.end()) {
|
||||||
if(it->second.IsValid() &&
|
if(it->second.IsValid() &&
|
||||||
it->second.GetSignal() == eVoteSignalIn &&
|
it->second.GetSignal() == eVoteSignalIn &&
|
||||||
it->second.GetOutcome() == eVoteOutcomeIn &&
|
it->second.GetOutcome() == eVoteOutcomeIn &&
|
||||||
|
Loading…
Reference in New Issue
Block a user