MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / State

Function State

src/p2p/node.cpp:51–58  ·  view source on GitHub ↗

Requires cs_mapNodeState.

Source from the content-addressed store, hash-verified

49
50// Requires cs_mapNodeState.
51CNodeState *State(NodeId pNode) {
52 AssertLockHeld(cs_mapNodeState);
53 map<NodeId, CNodeState>::iterator it = mapNodeState.find(pNode);
54 if (it == mapNodeState.end())
55 return nullptr;
56
57 return &it->second;
58}
59
60// requires LOCK(cs_vSend)
61void CNode::SocketSendData() {

Callers 9

FinalizeNodeFunction · 0.70
SendMessagesFunction · 0.70
ProcessMessageFunction · 0.70
MarkBlockAsReceivedFunction · 0.70
MarkBlockAsInFlightFunction · 0.70
AddBlockToQueueFunction · 0.70
GetNodeStateStatsFunction · 0.50
MisbehavingFunction · 0.50
InvalidBlockFoundFunction · 0.50

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected