From 348c001445cff9c958b88d8b4abc2729edba7170 Mon Sep 17 00:00:00 2001 From: Tim Flynn Date: Sat, 21 Jan 2017 00:26:35 -0500 Subject: [PATCH] Fix governance-votedb index bug (#1278) --- src/governance-votedb.cpp | 1 + 1 file changed, 1 insertion(+) 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 {