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

Function EXCLUSIVE_LOCKS_REQUIRED

src/net_processing.cpp:791–796  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

789static std::map<NodeId, CNodeState> mapNodeState GUARDED_BY(cs_main);
790
791static CNodeState *State(NodeId pnode) EXCLUSIVE_LOCKS_REQUIRED(cs_main) {
792 std::map<NodeId, CNodeState>::iterator it = mapNodeState.find(pnode);
793 if (it == mapNodeState.end())
794 return nullptr;
795 return &it->second;
796}
797
798/**
799 * Whether the peer supports the address. For example, a peer that does not

Callers 4

NewPoWValidBlockMethod · 0.70
_RelayTransactionMethod · 0.70

Calls 8

findMethod · 0.80
IsInboundConnMethod · 0.80
HasPermissionMethod · 0.80
IsAddrFetchConnMethod · 0.80
GetAncestorMethod · 0.80
GetIdMethod · 0.80
StateEnum · 0.70
endMethod · 0.45

Tested by

no test coverage detected