| 710 | } |
| 711 | |
| 712 | std::string CNode::LogPeer() const |
| 713 | { |
| 714 | auto peer_info{strprintf("peer=%d", GetId())}; |
| 715 | if (fLogIPs) { |
| 716 | return strprintf("%s, peeraddr=%s", peer_info, addr.ToStringAddrPort()); |
| 717 | } else { |
| 718 | return peer_info; |
| 719 | } |
| 720 | } |
| 721 | |
| 722 | std::string CNode::DisconnectMsg() const |
| 723 | { |
no test coverage detected