mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 05:23:01 +01:00
Set fValid=true when receiving new votes
This commit is contained in:
parent
d60f3f6984
commit
b6001065ae
@ -772,6 +772,7 @@ void CBudgetManager::ProcessMessage(CNode* pfrom, std::string& strCommand, CData
|
||||
if (strCommand == "mvote") { //Masternode Vote
|
||||
CBudgetVote vote;
|
||||
vRecv >> vote;
|
||||
vote.fValid = true;
|
||||
|
||||
if(mapSeenMasternodeBudgetVotes.count(vote.GetHash())){
|
||||
return;
|
||||
@ -835,6 +836,7 @@ void CBudgetManager::ProcessMessage(CNode* pfrom, std::string& strCommand, CData
|
||||
if (strCommand == "fbvote") { //Finalized Budget Vote
|
||||
CFinalizedBudgetVote vote;
|
||||
vRecv >> vote;
|
||||
vote.fValid = true;
|
||||
|
||||
if(mapSeenFinalizedBudgetVotes.count(vote.GetHash())){
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user