From: svost Date: Thu, 2 Feb 2017 19:40:51 +0000 (+0300) Subject: CNode::IsBanned add constant reference X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=032d0240f99b8af0b2451e128dae048ec064a8b7 CNode::IsBanned add constant reference --- diff --git a/src/net.cpp b/src/net.cpp index e284291..2a5bbf5 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -727,7 +727,7 @@ void CNode::ClearBanned() setBanned.clear(); } -bool CNode::IsBanned(CNetAddr ip) +bool CNode::IsBanned(const CNetAddr& ip) { bool fResult = false; { diff --git a/src/net.h b/src/net.h index 0d94116..86bbbd5 100644 --- a/src/net.h +++ b/src/net.h @@ -477,7 +477,7 @@ public: // between nodes running old code and nodes running // new code. static void ClearBanned(); // needed for unit testing - static bool IsBanned(CNetAddr ip); + static bool IsBanned(const CNetAddr& ip); bool Misbehaving(int howmuch); // 1 == a little, 100 == a lot void copyStats(CNodeStats &stats); // Network stats