MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / getRowByNodeId

Method getRowByNodeId

src/qt/peertablemodel.cpp:231–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231int PeerTableModel::getRowByNodeId(NodeId nodeid)
232{
233 std::map<NodeId, int>::iterator it = priv->mapNodeRows.find(nodeid);
234 if (it == priv->mapNodeRows.end())
235 return -1;
236
237 return it->second;
238}
239
240void PeerTableModel::sort(int column, Qt::SortOrder order)
241{

Callers 2

peerLayoutChangedMethod · 0.80
banSelectedNodeMethod · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected