|
|
|
@ -27,6 +27,7 @@
|
|
|
|
|
#include <QKeyEvent>
|
|
|
|
|
#include <QMenu>
|
|
|
|
|
#include <QScrollBar>
|
|
|
|
|
#include <QSignalMapper>
|
|
|
|
|
#include <QThread>
|
|
|
|
|
#include <QTime>
|
|
|
|
|
#include <QTimer>
|
|
|
|
@ -242,7 +243,7 @@ RPCConsole::RPCConsole(const PlatformStyle *platformStyle, QWidget *parent) :
|
|
|
|
|
clientModel(0),
|
|
|
|
|
historyPtr(0),
|
|
|
|
|
cachedNodeid(-1),
|
|
|
|
|
platformStyle(platformStyle)
|
|
|
|
|
platformStyle(platformStyle),
|
|
|
|
|
peersTableContextMenu(0),
|
|
|
|
|
banTableContextMenu(0)
|
|
|
|
|
{
|
|
|
|
@ -807,7 +808,6 @@ void RPCConsole::banSelectedNode(int bantime)
|
|
|
|
|
SplitHostPort(nStr, port, addr);
|
|
|
|
|
|
|
|
|
|
CNode::Ban(CNetAddr(addr), BanReasonManuallyAdded, bantime);
|
|
|
|
|
DumpBanlist(); // store banlist to disk
|
|
|
|
|
bannedNode->fDisconnect = true;
|
|
|
|
|
|
|
|
|
|
clearSelectedNode();
|
|
|
|
@ -827,7 +827,6 @@ void RPCConsole::unbanSelectedNode()
|
|
|
|
|
if (possibleSubnet.IsValid())
|
|
|
|
|
{
|
|
|
|
|
CNode::Unban(possibleSubnet);
|
|
|
|
|
DumpBanlist(); // store banlist to disk
|
|
|
|
|
clientModel->getBanTableModel()->refresh();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|