From fd1327031b4149d4852adf6aef0484336ec65f56 Mon Sep 17 00:00:00 2001 From: Tim Flynn Date: Mon, 14 Nov 2016 13:07:11 -0500 Subject: [PATCH] Moved vote relaying into ProcessVote so that local votes are relayed --- src/governance.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/governance.cpp b/src/governance.cpp index 62e67e53b..7a7e866d6 100644 --- a/src/governance.cpp +++ b/src/governance.cpp @@ -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; }