Skip to content

Commit

Permalink
[QT] dump banlist to disk in case of ban/unban over QT
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasschnelli committed Sep 20, 2015
1 parent 7f90ea7 commit 7aac6db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/qt/rpcconsole.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,7 @@ void RPCConsole::banSelectedNode(int bantime)

CNode::Ban(CNetAddr(addr), BanReasonManuallyAdded, bantime);
bannedNode->fDisconnect = true;
DumpBanlist();

clearSelectedNode();
clientModel->getBanTableModel()->refresh();
Expand All @@ -827,6 +828,7 @@ void RPCConsole::unbanSelectedNode()
if (possibleSubnet.IsValid())
{
CNode::Unban(possibleSubnet);
DumpBanlist();
clientModel->getBanTableModel()->refresh();
}
}
Expand Down

0 comments on commit 7aac6db

Please sign in to comment.