mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-05 18:52:29 +02:00
refactor: Rename Node::disconnect methods
Avoid overloading method name to work more easily with IPC framework
This commit is contained in:
@@ -1191,7 +1191,7 @@ void RPCConsole::disconnectSelectedNode()
|
||||
// Get currently selected peer address
|
||||
NodeId id = nodes.at(i).data().toLongLong();
|
||||
// Find the node, disconnect it and clear the selected node
|
||||
if(m_node.disconnect(id))
|
||||
if(m_node.disconnectById(id))
|
||||
clearSelectedNode();
|
||||
}
|
||||
}
|
||||
@@ -1216,7 +1216,7 @@ void RPCConsole::banSelectedNode(int bantime)
|
||||
const CNodeCombinedStats *stats = clientModel->getPeerTableModel()->getNodeStats(detailNodeRow);
|
||||
if (stats) {
|
||||
m_node.ban(stats->nodeStats.addr, BanReasonManuallyAdded, bantime);
|
||||
m_node.disconnect(stats->nodeStats.addr);
|
||||
m_node.disconnectByAddress(stats->nodeStats.addr);
|
||||
}
|
||||
}
|
||||
clearSelectedNode();
|
||||
|
||||
Reference in New Issue
Block a user