Requires cs_mapNodeState.
| 49 | |
| 50 | // Requires cs_mapNodeState. |
| 51 | CNodeState *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) |
| 61 | void CNode::SocketSendData() { |
no test coverage detected