mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-13 07:28:59 +01:00
[Qt] adapt QT ban option to banlist.dat changes
This commit is contained in:
@@ -356,10 +356,10 @@ void RPCConsole::setClientModel(ClientModel *model)
|
||||
|
||||
// create peer table context menu actions
|
||||
QAction* disconnectAction = new QAction(tr("&Disconnect Node"), this);
|
||||
QAction* banAction1h = new QAction(tr("&Ban Node for") + " " + tr("&1 hour"), this);
|
||||
QAction* banAction24h = new QAction(tr("&Ban Node for") + " " + tr("&24 hours"), this);
|
||||
QAction* banAction7d = new QAction(tr("&Ban Node for") + " " + tr("&7 days"), this);
|
||||
QAction* banAction365d = new QAction(tr("&Ban Node for") + " " + tr("&1 year"), this);
|
||||
QAction* banAction1h = new QAction(tr("Ban Node for") + " " + tr("1 hour"), this);
|
||||
QAction* banAction24h = new QAction(tr("Ban Node for") + " " + tr("24 hours"), this);
|
||||
QAction* banAction7d = new QAction(tr("Ban Node for") + " " + tr("7 days"), this);
|
||||
QAction* banAction365d = new QAction(tr("Ban Node for") + " " + tr("1 year"), this);
|
||||
|
||||
// create peer table context menu
|
||||
peersTableContextMenu = new QMenu();
|
||||
@@ -806,7 +806,7 @@ void RPCConsole::banSelectedNode(int bantime)
|
||||
int port = 0;
|
||||
SplitHostPort(nStr, port, addr);
|
||||
|
||||
CNode::Ban(CNetAddr(addr), bantime);
|
||||
CNode::Ban(CNetAddr(addr), BanReasonManuallyAdded, bantime);
|
||||
bannedNode->fDisconnect = true;
|
||||
|
||||
clearSelectedNode();
|
||||
|
||||
Reference in New Issue
Block a user