Fix governance-votedb index bug (#1278)
This commit is contained in:
parent
2a43d23f95
commit
348c001445
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user