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

Method CalculateKeyedNetGroup

src/net.cpp:3123–3128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3121}
3122
3123uint64_t CConnman::CalculateKeyedNetGroup(const CAddress& ad) const
3124{
3125 std::vector<unsigned char> vchNetGroup(ad.GetGroup(addrman.GetAsmap()));
3126
3127 return GetDeterministicRandomizer(RANDOMIZER_ID_NETGROUP).Write(vchNetGroup.data(), vchNetGroup.size()).Finalize();
3128}
3129
3130void CaptureMessageToFile(const CAddress& addr,
3131 const std::string& msg_type,

Callers

nothing calls this directly

Calls 5

GetGroupMethod · 0.80
FinalizeMethod · 0.45
WriteMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected