diff --git a/src/governance-votedb.cpp b/src/governance-votedb.cpp index e71bbb11d..ed62c43fa 100644 --- a/src/governance-votedb.cpp +++ b/src/governance-votedb.cpp @@ -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 {