MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / GetHash

Method GetHash

src/netbase.cpp:991–997  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

989}
990
991uint64_t CNetAddr::GetHash() const
992{
993 uint256 hash = Hash(&ip[0], &ip[16]);
994 uint64_t nRet;
995 memcpy(&nRet, &hash, sizeof(nRet));
996 return nRet;
997}
998
999// private extensions to enum Network, only returned by GetExtNetwork,
1000// and only used in GetReachabilityFrom

Callers 15

CompactReReqResponseMethod · 0.45
addTransactionMethod · 0.45
finishBlockMethod · 0.45
GetBlockHashMethod · 0.45
operator()Method · 0.45
operator()Method · 0.45
TxToUnivFunction · 0.45
blockToJSONFunction · 0.45
BOOST_FOREACHFunction · 0.45
OutputTxHashFunction · 0.45
CreateNewBlockFunction · 0.45
ProcessBlockFoundFunction · 0.45

Calls 2

memcpyFunction · 0.85
HashFunction · 0.70

Tested by

no test coverage detected