Moved vote relaying into ProcessVote so that local votes are relayed
This commit is contained in:
parent
c31ba8ba4c
commit
fd1327031b
@ -223,7 +223,6 @@ void CGovernanceManager::ProcessMessage(CNode* pfrom, std::string& strCommand, C
|
||||
CGovernanceException exception;
|
||||
if(ProcessVote(pfrom, vote, exception)) {
|
||||
LogPrint("gobject", "CGovernanceManager -- Accepted vote\n");
|
||||
vote.Relay();
|
||||
}
|
||||
else {
|
||||
LogPrint("gobject", "CGovernanceManager -- Rejected vote, error = %s\n", exception.what());
|
||||
@ -638,6 +637,8 @@ bool CGovernanceManager::ProcessVote(CNode* pfrom, const CGovernanceVote& vote,
|
||||
if(govobj.GetObjectType() == GOVERNANCE_OBJECT_WATCHDOG) {
|
||||
mnodeman.UpdateWatchdogVoteTime(vote.GetVinMasternode());
|
||||
}
|
||||
|
||||
vote.Relay();
|
||||
}
|
||||
return fOk;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user