From 1653f97c8f3c37cd96e03cf397c31c5caf81af08 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Sun, 13 May 2012 15:11:51 +0200 Subject: [PATCH] Do not consider blocked networks local --- src/net.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/net.cpp b/src/net.cpp index 82a215c6..698aa91d 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); {