diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2012-05-13 15:11:51 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2012-05-13 15:11:51 +0200 |
commit | 1653f97c8f3c37cd96e03cf397c31c5caf81af08 (patch) | |
tree | 61d33a116367070016b6ea33ff4b63e3d36b1e64 | |
parent | 9fc0a15cd4b03203a81944766b2c882a6266cb59 (diff) |
Do not consider blocked networks local
-rw-r--r-- | src/net.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net.cpp b/src/net.cpp index 82a215c68a..698aa91de1 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -214,6 +214,9 @@ bool AddLocal(const CService& addr, int nScore) if (!GetBoolArg("-discover", true) && nScore < LOCAL_MANUAL) return false; + if (!IsLimited(addr)) + return false; + printf("AddLocal(%s,%i)\n", addr.ToString().c_str(), nScore); { |