diff options
| author | Pieter Wuille <[email protected]> | 2012-05-13 15:11:51 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2012-05-13 15:11:51 +0200 |
| commit | 1653f97c8f3c37cd96e03cf397c31c5caf81af08 (patch) | |
| tree | 61d33a116367070016b6ea33ff4b63e3d36b1e64 /src/net.cpp | |
| parent | Merge pull request #1285 from sipa/initerror (diff) | |
| download | discoin-1653f97c8f3c37cd96e03cf397c31c5caf81af08.tar.xz discoin-1653f97c8f3c37cd96e03cf397c31c5caf81af08.zip | |
Do not consider blocked networks local
Diffstat (limited to 'src/net.cpp')
| -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 82a215c68..698aa91de 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); { |