diff options
| author | Gleb Naumenko <[email protected]> | 2020-07-04 11:25:51 +0300 |
|---|---|---|
| committer | Gleb Naumenko <[email protected]> | 2020-07-24 18:02:20 +0300 |
| commit | ded742bc5b96e3215d69c11fb3628d224e7ae034 (patch) | |
| tree | a7b236f7cac040a817a794716bc419aa5f75a29f /src/net_processing.cpp | |
| parent | Merge #19565: build: call AC_PATH_TOOL for dsymutil in macOS cross-compile (diff) | |
| download | discoin-ded742bc5b96e3215d69c11fb3628d224e7ae034.tar.xz discoin-ded742bc5b96e3215d69c11fb3628d224e7ae034.zip | |
Move filtering banned addrs inside GetAddresses()
Diffstat (limited to 'src/net_processing.cpp')
| -rw-r--r-- | src/net_processing.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 5f1e7318f..0aa7288b7 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -3480,10 +3480,7 @@ void ProcessMessage( std::vector<CAddress> vAddr = connman.GetAddresses(); FastRandomContext insecure_rand; for (const CAddress &addr : vAddr) { - bool banned_or_discouraged = banman && (banman->IsDiscouraged(addr) || banman->IsBanned(addr)); - if (!banned_or_discouraged) { - pfrom.PushAddress(addr, insecure_rand); - } + pfrom.PushAddress(addr, insecure_rand); } return; } |