[net] remove unused return type bool from CNode::Ban()

This commit is contained in:
Jonas Schnelli
2015-05-19 17:15:25 +02:00
committed by Jack Grigg
parent 962ec4b5e4
commit 445cd761c5
2 changed files with 2 additions and 4 deletions

View File

@@ -464,7 +464,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;
@@ -472,8 +472,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) {