aboutsummaryrefslogtreecommitdiff
path: root/src/qt/rpcconsole.cpp
diff options
context:
space:
mode:
authorJonas Schnelli <jonas.schnelli@include7.ch>2015-07-03 08:35:14 +0200
committerJonas Schnelli <jonas.schnelli@include7.ch>2015-09-16 16:50:20 +0200
commitb1189cfa105da414d8645f7284c16a443a710cfe (patch)
tree622ece0d7c4eadc9e4feba954b5d6259c648fc3b /src/qt/rpcconsole.cpp
parent65abe91ce4c3c9b26afa5d1af38bd1bfe81546c4 (diff)
downloadbitcoin-b1189cfa105da414d8645f7284c16a443a710cfe.tar.xz
[Qt] adapt QT ban option to banlist.dat changes
Diffstat (limited to 'src/qt/rpcconsole.cpp')
-rw-r--r--src/qt/rpcconsole.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp
index c417ec3f32..b224d89183 100644
--- a/src/qt/rpcconsole.cpp
+++ b/src/qt/rpcconsole.cpp
@@ -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();