mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-26 19:23:26 -03:00
Updated comment for the condition where a transaction relay is denied
This commit is contained in:
parent
be01449cc8
commit
0ea5d70b47
1 changed files with 2 additions and 2 deletions
|
@ -2535,8 +2535,8 @@ bool ProcessMessage(CNode* pfrom, const std::string& msg_type, CDataStream& vRec
|
||||||
|
|
||||||
if (msg_type == NetMsgType::TX) {
|
if (msg_type == NetMsgType::TX) {
|
||||||
// Stop processing the transaction early if
|
// Stop processing the transaction early if
|
||||||
// We are in blocks only mode and peer is either not whitelisted or whitelistrelay is off
|
// 1) We are in blocks only mode and peer has no relay permission
|
||||||
// or if this peer is supposed to be a block-relay-only peer
|
// 2) This peer is a block-relay-only peer
|
||||||
if ((!g_relay_txes && !pfrom->HasPermission(PF_RELAY)) || (pfrom->m_tx_relay == nullptr))
|
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());
|
LogPrint(BCLog::NET, "transaction sent in violation of protocol peer=%d\n", pfrom->GetId());
|
||||||
|
|
Loading…
Add table
Reference in a new issue