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

Method GetHash

src/netaddress.cpp:384–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382}
383
384uint64_t CNetAddr::GetHash() const
385{
386 uint256 hash = Hash(&ip[0], &ip[16]);
387 uint64_t nRet;
388 memcpy(&nRet, &hash, sizeof(nRet));
389 return nRet;
390}
391
392// private extensions to enum Network, only returned by GetExtNetwork,
393// and only used in GetReachabilityFrom

Callers 15

GetBlockHashMethod · 0.45
operator()Method · 0.45
operator()Method · 0.45
operator()Method · 0.45
operator()Method · 0.45
removeForBlockMethod · 0.45
TxToUnivFunction · 0.45
SerializeDBFunction · 0.45
DeserializeDBFunction · 0.45
OutputTxHashFunction · 0.45
AddToBlockMethod · 0.45
UpdateForDescendantsMethod · 0.45

Calls 2

memcpyFunction · 0.85
HashFunction · 0.70

Tested by 1

TestBlockValidityFunction · 0.36