aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.cpp
diff options
context:
space:
mode:
authorglowang <wanggloria21@gmail.com>2020-05-07 08:38:10 -0700
committerglowang <wanggloria21@gmail.com>2020-05-17 08:33:09 -0700
commit0ea5d70b4756f376342417e0019490233cb4a918 (patch)
tree60103f43bef3006f1241f6fcce1d02bb7f071ef1 /src/net_processing.cpp
parentbe01449cc8eb7bb97531a967f5d1dcc7b8865d1e (diff)
Updated comment for the condition where a transaction relay is denied
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r--src/net_processing.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp
index 26327ac6eb..14c3ae9274 100644
--- a/src/net_processing.cpp
+++ b/src/net_processing.cpp
@@ -2535,8 +2535,8 @@ bool ProcessMessage(CNode* pfrom, const std::string& msg_type, CDataStream& vRec
if (msg_type == NetMsgType::TX) {
// Stop processing the transaction early if
- // We are in blocks only mode and peer is either not whitelisted or whitelistrelay is off
- // or if this peer is supposed to be a block-relay-only peer
+ // 1) We are in blocks only mode and peer has no relay permission
+ // 2) This peer is a block-relay-only peer
if ((!g_relay_txes && !pfrom->HasPermission(PF_RELAY)) || (pfrom->m_tx_relay == nullptr))
{
LogPrint(BCLog::NET, "transaction sent in violation of protocol peer=%d\n", pfrom->GetId());