MCPcopy Create free account
hub / github.com/ElementsProject/elements / getNumConnections

Method getNumConnections

src/qt/clientmodel.cpp:78–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78int ClientModel::getNumConnections(unsigned int flags) const
79{
80 ConnectionDirection connections = ConnectionDirection::None;
81
82 if(flags == CONNECTIONS_IN)
83 connections = ConnectionDirection::In;
84 else if (flags == CONNECTIONS_OUT)
85 connections = ConnectionDirection::Out;
86 else if (flags == CONNECTIONS_ALL)
87 connections = ConnectionDirection::Both;
88
89 return m_node.getNodeCount(connections);
90}
91
92int ClientModel::getHeaderTipHeight() const
93{

Callers 3

updateNetworkStateMethod · 0.80
setClientModelMethod · 0.80
updateNetworkStateMethod · 0.80

Calls 1

getNodeCountMethod · 0.80

Tested by

no test coverage detected