aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorJonas Schnelli <jonas.schnelli@include7.ch>2015-05-19 17:15:25 +0200
committerJonas Schnelli <jonas.schnelli@include7.ch>2015-06-17 21:40:55 +0200
commite8b93473f12ec901f965cd244a7437646ee66c43 (patch)
tree205e3bc737ce3b3c7cf4abcec9a5a6e83e4e30af /src/net.cpp
parent1086ffba2639098558422935eba1cae9983dd913 (diff)
[net] remove unused return type bool from CNode::Ban()
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 51d1c53331..a065bb29bb 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -458,7 +458,7 @@ bool CNode::IsBanned(CNetAddr ip)
return fResult;
}
-bool CNode::Ban(const CNetAddr &addr, int64_t bantimeoffset) {
+void CNode::Ban(const CNetAddr &addr, int64_t bantimeoffset) {
int64_t banTime = GetTime()+GetArg("-bantime", 60*60*24); // Default 24-hour ban
if (bantimeoffset > 0)
banTime = GetTime()+bantimeoffset;
@@ -466,8 +466,6 @@ bool CNode::Ban(const CNetAddr &addr, int64_t bantimeoffset) {
LOCK(cs_setBanned);
if (setBanned[addr] < banTime)
setBanned[addr] = banTime;
-
- return true;
}
bool CNode::Unban(const CNetAddr &addr) {