From a3ee5db98e54b14459be43eb17a0267a64efe015 Mon Sep 17 00:00:00 2001 From: alex v Date: Thu, 8 Apr 2021 07:17:39 +0200 Subject: [PATCH] prevent duplicate remove vote (#805) --- src/miner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/miner.cpp b/src/miner.cpp index 171fc9e86..6a6f3b38f 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -1333,7 +1333,7 @@ bool SignBlock(CBlock *pblock, CWallet& wallet, int64_t nFees, std::string sLog) bool fProposal = view.HaveProposal(hash); bool fPaymentRequest = view.HavePaymentRequest(hash); - if (mapAddedVotes.count(hash) == 0 && votes.count(hash) == 0 && (fProposal || fPaymentRequest) && !(pblock->nNonce & 1)) + if (val != VoteFlags::VOTE_REMOVE && mapAddedVotes.count(hash) == 0 && votes.count(hash) == 0 && (fProposal || fPaymentRequest) && !(pblock->nNonce & 1)) { pblock->vtx[0].vout.insert(pblock->vtx[0].vout.begin(), CTxOut());