Skip to content

Commit

Permalink
Relay govobj and govvote to every compatible peer, not only to the on…
Browse files Browse the repository at this point in the history
…e with the same version (#1662)
  • Loading branch information
UdjinM6 committed Oct 4, 2017
1 parent d286198 commit 48d63ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/governance-object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
3 changes: 2 additions & 1 deletion src/governance-vote.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 48d63ab

Please sign in to comment.