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