MCPcopy Create free account
hub / github.com/amule-project/amule / AddSigningIP

Method AddSigningIP

src/SHAHashSet.cpp:454–458  ·  view source on GitHub ↗

//////////////////////////////////////////////////////////////////////////////////// CAICHUntrustedHash

Source from the content-addressed store, hash-verified

452/////////////////////////////////////////////////////////////////////////////////////////
453///CAICHUntrustedHash
454bool CAICHUntrustedHash::AddSigningIP(uint32 dwIP)
455{
456 dwIP &= 0x00F0FFFF; // we use only the 20 most significant bytes for unique IPs
457 return m_adwIpsSigning.insert(dwIP).second;
458}
459
460
461

Callers 1

UntrustedHashReceivedMethod · 0.80

Calls 1

insertMethod · 0.80

Tested by

no test coverage detected