From 3468ab34d1f15bc90eca3d258493bd48a6a0952e Mon Sep 17 00:00:00 2001 From: Konstantin Akimov Date: Thu, 1 Aug 2024 02:45:53 +0700 Subject: [PATCH] fix: use blocks-only instead of address-only for inventory --- src/net_processing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 384e1febeb3c9..a22b76dea7cb2 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -2589,7 +2589,7 @@ void PeerManagerImpl::ProcessGetData(CNode& pfrom, Peer& peer, const std::atomic } ++it; - if (!peer.m_addr_relay_enabled && NetMessageViolatesBlocksOnly(inv.GetCommand())) { + if (peer.m_block_relay_only && NetMessageViolatesBlocksOnly(inv.GetCommand())) { // Note that if we receive a getdata for non-block messages // from a block-relay-only outbound peer that violate the policy, // we skip such getdata messages from this peer