mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-10 10:52:31 -05:00
Do not consider blocked networks local
This commit is contained in:
parent
9fc0a15cd4
commit
1653f97c8f
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue