From b59ba777fc60eab586f54be9e4a8342c5d81f373 Mon Sep 17 00:00:00 2001 From: Evan Duffield Date: Mon, 2 Feb 2015 05:01:06 -0700 Subject: [PATCH] only relay signatures to subscribing peers --- src/instantx.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/instantx.cpp b/src/instantx.cpp index fb923c172..3a0f1addf 100644 --- a/src/instantx.cpp +++ b/src/instantx.cpp @@ -119,6 +119,9 @@ void ProcessMessageInstantX(CNode* pfrom, std::string& strCommand, CDataStream& LOCK(cs_vNodes); BOOST_FOREACH(CNode* pnode, vNodes) { + if(!pnode->fRelayTxes) + continue; + pnode->PushMessage("txlvote", ctx); } @@ -144,7 +147,7 @@ void DoConsensusVote(CTransaction& tx, bool approved, int64_t nBlockHeight) LogPrintf("InstantX::DoConsensusVote - Signature invalid\n"); return; } - + LOCK(cs_vNodes); BOOST_FOREACH(CNode* pnode, vNodes) {