Merge pull request #1074 from nmarley/bugfix-vote-counting
Bugfix: vote counting
This commit is contained in:
commit
8aaa8a22b0
@ -1100,8 +1100,8 @@ int CGovernanceManager::CountMatchingVotes(CGovernanceObject& govobj, vote_signa
|
||||
LOCK(cs);
|
||||
int nCount = 0;
|
||||
|
||||
std::map<uint256, CGovernanceVote>::iterator it = mapVotesByHash.begin();
|
||||
while(it != mapVotesByHash.end()) {
|
||||
std::map<uint256, CGovernanceVote>::iterator it = mapVotesByType.begin();
|
||||
while(it != mapVotesByType.end()) {
|
||||
if(it->second.IsValid() &&
|
||||
it->second.GetSignal() == eVoteSignalIn &&
|
||||
it->second.GetOutcome() == eVoteOutcomeIn &&
|
||||
|
Loading…
Reference in New Issue
Block a user