0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-10 10:52:31 -05:00

[net processing] Remove redundant nodestate->m_sendcmpct check in MaybeSetPeerAsAnnouncingHeaderAndIDs()

This commit is contained in:
John Newbery 2021-01-02 15:52:13 +00:00
parent bb985a7b6a
commit a50e34c367

View file

@ -968,7 +968,7 @@ void PeerManagerImpl::MaybeSetPeerAsAnnouncingHeaderAndIDs(NodeId nodeid)
// Don't request compact blocks if the peer has not signalled support // Don't request compact blocks if the peer has not signalled support
return; return;
} }
if (nodestate->m_provides_cmpctblocks) {
int num_outbound_hb_peers = 0; int num_outbound_hb_peers = 0;
for (std::list<NodeId>::iterator it = lNodesAnnouncingHeaderAndIDs.begin(); it != lNodesAnnouncingHeaderAndIDs.end(); it++) { for (std::list<NodeId>::iterator it = lNodesAnnouncingHeaderAndIDs.begin(); it != lNodesAnnouncingHeaderAndIDs.end(); it++) {
if (*it == nodeid) { if (*it == nodeid) {
@ -1011,7 +1011,6 @@ void PeerManagerImpl::MaybeSetPeerAsAnnouncingHeaderAndIDs(NodeId nodeid)
return true; return true;
}); });
} }
}
bool PeerManagerImpl::TipMayBeStale() bool PeerManagerImpl::TipMayBeStale()
{ {