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

Function HasAllDesirableServiceFlags

src/protocol.h:345–348  ·  view source on GitHub ↗

* A shortcut for (services & GetDesirableServiceFlags(services)) * == GetDesirableServiceFlags(services), ie determines whether the given * set of service flags are sufficient for a peer to be "relevant". */

Source from the content-addressed store, hash-verified

343 * set of service flags are sufficient for a peer to be "relevant".
344 */
345static inline bool HasAllDesirableServiceFlags(ServiceFlags services)
346{
347 return !(GetDesirableServiceFlags(services) & (~services));
348}
349
350/**
351 * Checks if a peer with the given service flags may be capable of having a

Callers 4

ProcessMessageMethod · 0.85
ThreadOpenConnectionsMethod · 0.85
FUZZ_TARGET_INITFunction · 0.85

Calls 1

GetDesirableServiceFlagsFunction · 0.85

Tested by 1

FUZZ_TARGET_INITFunction · 0.68