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

Method GetExtraBlockRelayCount

src/net.cpp:1905–1917  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1903}
1904
1905int CConnman::GetExtraBlockRelayCount() const
1906{
1907 int block_relay_peers = 0;
1908 {
1909 LOCK(m_nodes_mutex);
1910 for (const CNode* pnode : m_nodes) {
1911 if (pnode->fSuccessfullyConnected && !pnode->fDisconnect && pnode->IsBlockOnlyConn()) {
1912 ++block_relay_peers;
1913 }
1914 }
1915 }
1916 return std::max(block_relay_peers - m_max_outbound_block_relay, 0);
1917}
1918
1919void CConnman::ThreadOpenConnections(const std::vector<std::string> connect)
1920{

Callers 1

Calls 1

IsBlockOnlyConnMethod · 0.80

Tested by

no test coverage detected