Clean up separated ban/discourage interface

This commit is contained in:
Pieter Wuille committed 2020-07-03 20:43:55 -07:00
1 parent b691f2df5f
commit 2ad58381ff
13 files changed
+77 -113

No files matched your search

+1 -1
View File
@@ -1218,7 +1218,7 @@ void RPCConsole::banSelectedNode(int bantime)
// Find possible nodes, ban it and clear the selected node
const CNodeCombinedStats *stats = clientModel->getPeerTableModel()->getNodeStats(detailNodeRow);
if (stats) {
m_node.ban(stats->nodeStats.addr, BanReasonManuallyAdded, bantime);
m_node.ban(stats->nodeStats.addr, bantime);
m_node.disconnectByAddress(stats->nodeStats.addr);
}
}