Relay govobj and govvote to every compatible peer, not only to the one with the same version (#1662)

This commit is contained in:
UdjinM6 2017-10-04 23:12:53 +03:00 committed by GitHub
parent d286198728
commit 48d63ab296
2 changed files with 3 additions and 2 deletions

View File

@ -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()

View File

@ -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)