diff --git a/src/governance-object.cpp b/src/governance-object.cpp index 3476a1ed2..527f560a9 100644 --- a/src/governance-object.cpp +++ b/src/governance-object.cpp @@ -652,7 +652,7 @@ bool CGovernanceObject::GetCurrentMNVotes(const COutPoint& mnCollateralOutpoint, void CGovernanceObject::Relay(CConnman& connman) { CInv inv(MSG_GOVERNANCE_OBJECT, GetHash()); - connman.RelayInv(inv, PROTOCOL_VERSION); + connman.RelayInv(inv, MIN_GOVERNANCE_PEER_PROTO_VERSION); } void CGovernanceObject::UpdateSentinelVariables() diff --git a/src/governance-vote.cpp b/src/governance-vote.cpp index 73fb5529a..79193b4d1 100644 --- a/src/governance-vote.cpp +++ b/src/governance-vote.cpp @@ -3,6 +3,7 @@ // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "governance-vote.h" +#include "governance-object.h" #include "masternodeman.h" #include "messagesigner.h" #include "util.h" @@ -226,7 +227,7 @@ CGovernanceVote::CGovernanceVote(COutPoint outpointMasternodeIn, uint256 nParent void CGovernanceVote::Relay(CConnman& connman) const { CInv inv(MSG_GOVERNANCE_OBJECT_VOTE, GetHash()); - connman.RelayInv(inv, PROTOCOL_VERSION); + connman.RelayInv(inv, MIN_GOVERNANCE_PEER_PROTO_VERSION); } bool CGovernanceVote::Sign(CKey& keyMasternode, CPubKey& pubKeyMasternode)