File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -152,14 +152,14 @@ class NodeImpl : public Node
152
152
}
153
153
return false ;
154
154
}
155
- bool disconnect (const CNetAddr& net_addr) override
155
+ bool disconnectByAddress (const CNetAddr& net_addr) override
156
156
{
157
157
if (m_context.connman ) {
158
158
return m_context.connman ->DisconnectNode (net_addr);
159
159
}
160
160
return false ;
161
161
}
162
- bool disconnect (NodeId id) override
162
+ bool disconnectById (NodeId id) override
163
163
{
164
164
if (m_context.connman ) {
165
165
return m_context.connman ->DisconnectNode (id);
Original file line number Diff line number Diff line change @@ -124,10 +124,10 @@ class Node
124
124
virtual bool unban (const CSubNet& ip) = 0;
125
125
126
126
// ! Disconnect node by address.
127
- virtual bool disconnect (const CNetAddr& net_addr) = 0;
127
+ virtual bool disconnectByAddress (const CNetAddr& net_addr) = 0;
128
128
129
129
// ! Disconnect node by id.
130
- virtual bool disconnect (NodeId id) = 0;
130
+ virtual bool disconnectById (NodeId id) = 0;
131
131
132
132
// ! Get total bytes recv.
133
133
virtual int64_t getTotalBytesRecv () = 0;
Original file line number Diff line number Diff line change @@ -1191,7 +1191,7 @@ void RPCConsole::disconnectSelectedNode()
1191
1191
// Get currently selected peer address
1192
1192
NodeId id = nodes.at (i).data ().toLongLong ();
1193
1193
// Find the node, disconnect it and clear the selected node
1194
- if (m_node.disconnect (id))
1194
+ if (m_node.disconnectById (id))
1195
1195
clearSelectedNode ();
1196
1196
}
1197
1197
}
@@ -1216,7 +1216,7 @@ void RPCConsole::banSelectedNode(int bantime)
1216
1216
const CNodeCombinedStats *stats = clientModel->getPeerTableModel ()->getNodeStats (detailNodeRow);
1217
1217
if (stats) {
1218
1218
m_node.ban (stats->nodeStats .addr , BanReasonManuallyAdded, bantime);
1219
- m_node.disconnect (stats->nodeStats .addr );
1219
+ m_node.disconnectByAddress (stats->nodeStats .addr );
1220
1220
}
1221
1221
}
1222
1222
clearSelectedNode ();
You can’t perform that action at this time.
0 commit comments