git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
0c71d72
)
CNode::IsBanned add constant reference
author
svost
<ya.nowa@yandex.ru>
Thu, 2 Feb 2017 19:40:51 +0000 (22:40 +0300)
committer
svost
<ya.nowa@yandex.ru>
Thu, 2 Feb 2017 19:40:51 +0000 (22:40 +0300)
src/net.cpp
patch
|
blob
|
history
src/net.h
patch
|
blob
|
history
diff --git
a/src/net.cpp
b/src/net.cpp
index
e284291
..
2a5bbf5
100644
(file)
--- 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
(file)
--- 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