diff options
| author | Pieter Wuille <[email protected]> | 2012-05-13 14:11:53 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2012-05-13 14:22:15 +0200 |
| commit | af4006b3f50b571c228987d3fe93998a64b50de5 (patch) | |
| tree | 3919ffdbd517d96deba31b17ec8dad9e4dcb357e /src/net.cpp | |
| parent | Merge pull request #1178 from laanwj/2012_05_move_startonsystemstartup (diff) | |
| download | discoin-af4006b3f50b571c228987d3fe93998a64b50de5.tar.xz discoin-af4006b3f50b571c228987d3fe93998a64b50de5.zip | |
Enforce -nodiscover better
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 c8cb17091..82a215c68 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -211,6 +211,9 @@ bool AddLocal(const CService& addr, int nScore) if (!addr.IsRoutable()) return false; + if (!GetBoolArg("-discover", true) && nScore < LOCAL_MANUAL) + return false; + printf("AddLocal(%s,%i)\n", addr.ToString().c_str(), nScore); { |