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();
|
vote_l_it it = listVotes.begin();
|
||||||
while(it != listVotes.end()) {
|
while(it != listVotes.end()) {
|
||||||
if(it->GetVinMasternode() == vinMasternode) {
|
if(it->GetVinMasternode() == vinMasternode) {
|
||||||
|
mapVoteIndex.erase(it->GetHash());
|
||||||
listVotes.erase(it++);
|
listVotes.erase(it++);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user