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

Method getNumConnections

src/qt/clientmodel.cpp:58–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58int ClientModel::getNumConnections(unsigned int flags) const
59{
60 CConnman::NumConnections connections = CConnman::CONNECTIONS_NONE;
61
62 if(flags == CONNECTIONS_IN)
63 connections = CConnman::CONNECTIONS_IN;
64 else if (flags == CONNECTIONS_OUT)
65 connections = CConnman::CONNECTIONS_OUT;
66 else if (flags == CONNECTIONS_ALL)
67 connections = CConnman::CONNECTIONS_ALL;
68
69 return m_node.getNodeCount(connections);
70}
71
72int ClientModel::getHeaderTipHeight() const
73{

Callers 3

updateNetworkStateMethod · 0.80
setClientModelMethod · 0.80
updateNetworkStateMethod · 0.80

Calls 1

getNodeCountMethod · 0.80

Tested by

no test coverage detected