Browse Source

[Qt] call DumpBanlist() when baning unbaning nodes

- this matches RPC call behaviour
0.13
Philip Kaufmann 10 years ago committed by Jonas Schnelli
parent
commit
4ed05101f3
  1. 2
      src/qt/rpcconsole.cpp

2
src/qt/rpcconsole.cpp

@ -807,6 +807,7 @@ void RPCConsole::banSelectedNode(int bantime) @@ -807,6 +807,7 @@ void RPCConsole::banSelectedNode(int bantime)
SplitHostPort(nStr, port, addr);
CNode::Ban(CNetAddr(addr), BanReasonManuallyAdded, bantime);
DumpBanlist(); // store banlist to disk
bannedNode->fDisconnect = true;
clearSelectedNode();
@ -826,6 +827,7 @@ void RPCConsole::unbanSelectedNode() @@ -826,6 +827,7 @@ void RPCConsole::unbanSelectedNode()
if (possibleSubnet.IsValid())
{
CNode::Unban(possibleSubnet);
DumpBanlist(); // store banlist to disk
clientModel->getBanTableModel()->refresh();
}
}

Loading…
Cancel
Save