MCPcopy Create free account
hub / github.com/ElementsProject/elements / CheckIncomingNonce

Method CheckIncomingNonce

src/net.cpp:413–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411}
412
413bool 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 */
424static CAddress GetBindAddress(SOCKET sock)

Callers 2

ProcessMessageMethod · 0.80
FUZZ_TARGET_INITFunction · 0.80

Calls 2

IsInboundConnMethod · 0.80
GetLocalNonceMethod · 0.80

Tested by 1

FUZZ_TARGET_INITFunction · 0.64