Fix governance-votedb index bug (#1278)

This commit is contained in:
Tim Flynn 2017-01-21 00:26:35 -05:00 committed by UdjinM6
parent 2a43d23f95
commit 348c001445

View File

@ -58,6 +58,7 @@ void CGovernanceObjectVoteFile::RemoveVotesFromMasternode(const CTxIn& vinMaster
vote_l_it it = listVotes.begin();
while(it != listVotes.end()) {
if(it->GetVinMasternode() == vinMasternode) {
mapVoteIndex.erase(it->GetHash());
listVotes.erase(it++);
}
else {