fix: use blocks-only instead of address-only for inventory

This commit is contained in:
Konstantin Akimov 2024-08-01 02:45:53 +07:00
parent 7ebd7785d6
commit 3468ab34d1
No known key found for this signature in database
GPG Key ID: 2176C4A5D01EA524

View File

@ -2589,7 +2589,7 @@ void PeerManagerImpl::ProcessGetData(CNode& pfrom, Peer& peer, const std::atomic
} }
++it; ++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 // Note that if we receive a getdata for non-block messages
// from a block-relay-only outbound peer that violate the policy, // from a block-relay-only outbound peer that violate the policy,
// we skip such getdata messages from this peer // we skip such getdata messages from this peer