mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
Do not consider blocked networks local
This commit is contained in:
@@ -214,6 +214,9 @@ bool AddLocal(const CService& addr, int nScore)
|
|||||||
if (!GetBoolArg("-discover", true) && nScore < LOCAL_MANUAL)
|
if (!GetBoolArg("-discover", true) && nScore < LOCAL_MANUAL)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (!IsLimited(addr))
|
||||||
|
return false;
|
||||||
|
|
||||||
printf("AddLocal(%s,%i)\n", addr.ToString().c_str(), nScore);
|
printf("AddLocal(%s,%i)\n", addr.ToString().c_str(), nScore);
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user