mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-27 03:33:27 -03:00
[QT] dump banlist to disk in case of ban/unban over QT
This commit is contained in:
parent
7f90ea78cb
commit
7aac6db6eb
1 changed files with 2 additions and 0 deletions
|
@ -809,6 +809,7 @@ void RPCConsole::banSelectedNode(int bantime)
|
||||||
|
|
||||||
CNode::Ban(CNetAddr(addr), BanReasonManuallyAdded, bantime);
|
CNode::Ban(CNetAddr(addr), BanReasonManuallyAdded, bantime);
|
||||||
bannedNode->fDisconnect = true;
|
bannedNode->fDisconnect = true;
|
||||||
|
DumpBanlist();
|
||||||
|
|
||||||
clearSelectedNode();
|
clearSelectedNode();
|
||||||
clientModel->getBanTableModel()->refresh();
|
clientModel->getBanTableModel()->refresh();
|
||||||
|
@ -827,6 +828,7 @@ void RPCConsole::unbanSelectedNode()
|
||||||
if (possibleSubnet.IsValid())
|
if (possibleSubnet.IsValid())
|
||||||
{
|
{
|
||||||
CNode::Unban(possibleSubnet);
|
CNode::Unban(possibleSubnet);
|
||||||
|
DumpBanlist();
|
||||||
clientModel->getBanTableModel()->refresh();
|
clientModel->getBanTableModel()->refresh();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue