refactor: Rename Node::disconnect methods

Avoid overloading method name to work more easily with IPC framework
This commit is contained in:
Russell Yanofsky
2017-12-05 15:57:12 -05:00
parent 77e4b06572
commit 1c2ab1a6d2
3 changed files with 6 additions and 6 deletions

View File

@@ -152,14 +152,14 @@ public:
}
return false;
}
bool disconnect(const CNetAddr& net_addr) override
bool disconnectByAddress(const CNetAddr& net_addr) override
{
if (m_context.connman) {
return m_context.connman->DisconnectNode(net_addr);
}
return false;
}
bool disconnect(NodeId id) override
bool disconnectById(NodeId id) override
{
if (m_context.connman) {
return m_context.connman->DisconnectNode(id);