mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
fix: use blocks-only instead of address-only for inventory
This commit is contained in:
parent
7ebd7785d6
commit
3468ab34d1
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user