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

Method AddLocalServices

src/net.h:1388–1388  ·  view source on GitHub ↗

Updates the local services that this node advertises to other peers during connection handshake.

Source from the content-addressed store, hash-verified

1386 //! Updates the local services that this node advertises to other peers
1387 //! during connection handshake.
1388 void AddLocalServices(ServiceFlags services) { m_local_services = ServiceFlags(m_local_services | services); };
1389 void RemoveLocalServices(ServiceFlags services) { m_local_services = ServiceFlags(m_local_services & ~services); }
1390
1391 uint64_t GetMaxOutboundTarget() const EXCLUSIVE_LOCKS_REQUIRED(!m_total_bytes_sent_mutex);

Callers 3

InitAndLoadChainstateFunction · 0.80
connman.cppFile · 0.80
loadtxoutsetFunction · 0.80

Calls 1

ServiceFlagsEnum · 0.70

Tested by

no test coverage detected