MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / Ban

Method Ban

src/net.cpp:537–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

535}
536
537void CConnman::Ban(const CNetAddr& addr, const BanReason &banReason, int64_t bantimeoffset, bool sinceUnixEpoch) {
538 CSubNet subNet(addr);
539 Ban(subNet, banReason, bantimeoffset, sinceUnixEpoch);
540}
541
542void CConnman::Ban(const CSubNet& subNet, const BanReason &banReason, int64_t bantimeoffset, bool sinceUnixEpoch) {
543 CBanEntry banEntry(GetTime());

Callers 3

setbanFunction · 0.80
banMethod · 0.80

Calls 3

GetTimeFunction · 0.85
GetArgMethod · 0.45
MatchMethod · 0.45

Tested by

no test coverage detected