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

Method getNumConnections

src/qt/clientmodel.cpp:84–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84int ClientModel::getNumConnections(unsigned int flags) const
85{
86 ConnectionDirection connections = ConnectionDirection::None;
87
88 if(flags == CONNECTIONS_IN)
89 connections = ConnectionDirection::In;
90 else if (flags == CONNECTIONS_OUT)
91 connections = ConnectionDirection::Out;
92 else if (flags == CONNECTIONS_ALL)
93 connections = ConnectionDirection::Both;
94
95 return m_node.getNodeCount(connections);
96}
97
98int ClientModel::getHeaderTipHeight() const
99{

Callers 3

updateNetworkStateMethod · 0.80
setClientModelMethod · 0.80
updateNetworkStateMethod · 0.80

Calls 1

getNodeCountMethod · 0.80

Tested by

no test coverage detected