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

This commit is contained in:
John Newbery committed 2022-05-15 16:22:26 -04:00
1 parent bb985a7b6a
commit a50e34c367
1 file changed
+1 -2
+1 -2
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()
{ {