Skip to content

Commit 0ea5d70

Browse files
committed
Updated comment for the condition where a transaction relay is denied
1 parent be01449 commit 0ea5d70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/net_processing.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2535,8 +2535,8 @@ bool ProcessMessage(CNode* pfrom, const std::string& msg_type, CDataStream& vRec
25352535

25362536
if (msg_type == NetMsgType::TX) {
25372537
// Stop processing the transaction early if
2538-
// We are in blocks only mode and peer is either not whitelisted or whitelistrelay is off
2539-
// or if this peer is supposed to be a block-relay-only peer
2538+
// 1) We are in blocks only mode and peer has no relay permission
2539+
// 2) This peer is a block-relay-only peer
25402540
if ((!g_relay_txes && !pfrom->HasPermission(PF_RELAY)) || (pfrom->m_tx_relay == nullptr))
25412541
{
25422542
LogPrint(BCLog::NET, "transaction sent in violation of protocol peer=%d\n", pfrom->GetId());

0 commit comments

Comments
 (0)