Page MenuHomePhabricator

[core#19724 3/9][refactor] Restructure logic to check for addr relay.
ClosedPublic

Authored by PiRK on Mon, Jul 12, 15:55.

Details

Summary

We previously identified if we relay addresses to the connection by checking
for the existence of the m_addr_known data structure. With this commit, we
answer this question based on the connection type.

IsAddrRelayPeer() checked for the existence of the m_addr_known

This is a backport of core#19724 [3/9]
https://github.com/bitcoin/bitcoin/pull/19724/commits/dff16b184b1428a068d144e5e4dde7595b4729c0

Depends on D9771

Test Plan

ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

PiRK requested review of this revision.Mon, Jul 12, 15:55
majcosta added a subscriber: majcosta.
majcosta added inline comments.
src/net_processing.cpp
2976 ↗(On Diff #29146)

remove

This revision is now accepted and ready to land.Mon, Jul 12, 18:17

remove accidental blank line: