MCPcopy Create free account
hub / github.com/LUX-Core/lux / clearbanned

Function clearbanned

src/rpcnet.cpp:519–536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517}
518
519UniValue clearbanned(const UniValue& params, bool fHelp)
520{
521 if (fHelp || params.size() != 0)
522 throw runtime_error(
523 "clearbanned\n"
524 "\nClear all banned IPs.\n"
525
526 "\nExamples:\n"
527 + HelpExampleCli("clearbanned", "")
528 + HelpExampleRpc("clearbanned", ""));
529
530 CNode::ClearBanned();
531 DumpBanlist(); //store banlist to disk
532 uiInterface.BannedListChanged();
533
534
535 return NullUniValue;
536}

Callers

nothing calls this directly

Calls 4

HelpExampleCliFunction · 0.85
HelpExampleRpcFunction · 0.85
DumpBanlistFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected