aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces
diff options
context:
space:
mode:
authorPieter Wuille <pieter@wuille.net>2020-06-10 17:11:38 -0700
committerfanquake <fanquake@gmail.com>2020-07-08 09:10:52 +0800
commit2b79ac740622218a52e2cf3ae1755dd3a8d4847a (patch)
tree10ee4ea03b0960eab263bcfcf9cfb8253264194c /src/interfaces
parent04773480575ac79f238ac5764247dddd0cae5051 (diff)
downloadbitcoin-2b79ac740622218a52e2cf3ae1755dd3a8d4847a.tar.xz
Clean up separated ban/discourage interface
Github-Pull: #19219 Rebased-From: 2ad58381fffb33d611abf900b73d9e6b5a4e35f8
Diffstat (limited to 'src/interfaces')
-rw-r--r--src/interfaces/node.cpp4
-rw-r--r--src/interfaces/node.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/interfaces/node.cpp b/src/interfaces/node.cpp
index 905173d20b..3bd32909bf 100644
--- a/src/interfaces/node.cpp
+++ b/src/interfaces/node.cpp
@@ -136,10 +136,10 @@ public:
}
return false;
}
- bool ban(const CNetAddr& net_addr, BanReason reason, int64_t ban_time_offset) override
+ bool ban(const CNetAddr& net_addr, int64_t ban_time_offset) override
{
if (m_context.banman) {
- m_context.banman->Ban(net_addr, reason, ban_time_offset);
+ m_context.banman->Ban(net_addr, ban_time_offset);
return true;
}
return false;
diff --git a/src/interfaces/node.h b/src/interfaces/node.h
index 53a20886cd..61acde0523 100644
--- a/src/interfaces/node.h
+++ b/src/interfaces/node.h
@@ -118,7 +118,7 @@ public:
virtual bool getBanned(banmap_t& banmap) = 0;
//! Ban node.
- virtual bool ban(const CNetAddr& net_addr, BanReason reason, int64_t ban_time_offset) = 0;
+ virtual bool ban(const CNetAddr& net_addr, int64_t ban_time_offset) = 0;
//! Unban node.
virtual bool unban(const CSubNet& ip) = 0;