mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 23:29:12 +01:00
refactor: Rename Node::disconnect methods
Avoid overloading method name to work more easily with IPC framework
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user