mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
[QT] dump banlist to disk in case of ban/unban over QT
This commit is contained in:
parent
7f90ea78cb
commit
7aac6db6eb
@ -809,6 +809,7 @@ void RPCConsole::banSelectedNode(int bantime)
|
||||
|
||||
CNode::Ban(CNetAddr(addr), BanReasonManuallyAdded, bantime);
|
||||
bannedNode->fDisconnect = true;
|
||||
DumpBanlist();
|
||||
|
||||
clearSelectedNode();
|
||||
clientModel->getBanTableModel()->refresh();
|
||||
@ -827,6 +828,7 @@ void RPCConsole::unbanSelectedNode()
|
||||
if (possibleSubnet.IsValid())
|
||||
{
|
||||
CNode::Unban(possibleSubnet);
|
||||
DumpBanlist();
|
||||
clientModel->getBanTableModel()->refresh();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user