| 517 | } |
| 518 | |
| 519 | UniValue 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 | } |
nothing calls this directly
no test coverage detected