MCPcopy Create free account
hub / github.com/ElementsProject/elements / ban

Method ban

src/node/interfaces.cpp:156–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154 return false;
155 }
156 bool ban(const CNetAddr& net_addr, int64_t ban_time_offset) override
157 {
158 if (m_context->banman) {
159 m_context->banman->Ban(net_addr, ban_time_offset);
160 return true;
161 }
162 return false;
163 }
164 bool unban(const CSubNet& ip) override
165 {
166 if (m_context->banman) {

Callers 1

banSelectedNodeMethod · 0.80

Calls 1

BanMethod · 0.80

Tested by

no test coverage detected