| 411 | } |
| 412 | |
| 413 | bool CConnman::CheckIncomingNonce(uint64_t nonce) |
| 414 | { |
| 415 | LOCK(m_nodes_mutex); |
| 416 | for (const CNode* pnode : m_nodes) { |
| 417 | if (!pnode->fSuccessfullyConnected && !pnode->IsInboundConn() && pnode->GetLocalNonce() == nonce) |
| 418 | return false; |
| 419 | } |
| 420 | return true; |
| 421 | } |
| 422 | |
| 423 | /** Get the bind address for a socket as CAddress */ |
| 424 | static CAddress GetBindAddress(SOCKET sock) |