| 789 | static std::map<NodeId, CNodeState> mapNodeState GUARDED_BY(cs_main); |
| 790 | |
| 791 | static 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 |
no test coverage detected